C# Class ApiCore.Messages.LongPollServerConnection

Class represents vkontakte longPollServer connection
Inheritance: Object
Afficher le fichier Open project: nolka/vkdotnet Class Usage Examples

Méthodes publiques

Свойство Type Description
Key string
LastEventId int
Server string

Méthodes publiques

Méthode Description
LongPollServerConnection ( ApiManager manager ) : System

Create LongPoll Connection

Start ( ) : void

Start listening server connection

Stop ( ) : void

Stop listening server connection

Méthodes protégées

Méthode Description
OnReceivedData ( LongPollServerEventArgs e ) : void

Occurs when LongPoll server received some data

OnStopped ( ) : void

Stop LongPoll cient

Private Methods

Méthode Description
GetLongPollServerConnectionData ( ) : bool

Method, that received LongPoll server connecion info

doGetLongPollServerConnectionData ( object data ) : void
doGetSendRequest ( object data ) : void
doOnDataReceived ( object data ) : void
doOnStopped ( object data ) : void
run ( object state ) : void

Method Details

LongPollServerConnection() public méthode

Create LongPoll Connection
public LongPollServerConnection ( ApiManager manager ) : System
manager ApiManager ApiManager
Résultat System

OnReceivedData() protected méthode

Occurs when LongPoll server received some data
protected OnReceivedData ( LongPollServerEventArgs e ) : void
e LongPollServerEventArgs
Résultat void

OnStopped() protected méthode

Stop LongPoll cient
protected OnStopped ( ) : void
Résultat void

Start() public méthode

Start listening server connection
public Start ( ) : void
Résultat void

Stop() public méthode

Stop listening server connection
public Stop ( ) : void
Résultat void

Property Details

Key public_oe property

LongPoll server key
public string Key
Résultat string

LastEventId public_oe property

Last event id
public int LastEventId
Résultat int

Server public_oe property

LongPoll server url
public string Server
Résultat string