C# Class ApiCore.Messages.LongPollServerConnection

Class represents vkontakte longPollServer connection
Inheritance: Object
Exibir arquivo Open project: nolka/vkdotnet Class Usage Examples

Public Properties

Property Type Description
Key string
LastEventId int
Server string

Public Methods

Method Description
LongPollServerConnection ( ApiManager manager ) : System

Create LongPoll Connection

Start ( ) : void

Start listening server connection

Stop ( ) : void

Stop listening server connection

Protected Methods

Method Description
OnReceivedData ( LongPollServerEventArgs e ) : void

Occurs when LongPoll server received some data

OnStopped ( ) : void

Stop LongPoll cient

Private Methods

Method 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 method

Create LongPoll Connection
public LongPollServerConnection ( ApiManager manager ) : System
manager ApiManager ApiManager
return System

OnReceivedData() protected method

Occurs when LongPoll server received some data
protected OnReceivedData ( LongPollServerEventArgs e ) : void
e LongPollServerEventArgs
return void

OnStopped() protected method

Stop LongPoll cient
protected OnStopped ( ) : void
return void

Start() public method

Start listening server connection
public Start ( ) : void
return void

Stop() public method

Stop listening server connection
public Stop ( ) : void
return void

Property Details

Key public_oe property

LongPoll server key
public string Key
return string

LastEventId public_oe property

Last event id
public int LastEventId
return int

Server public_oe property

LongPoll server url
public string Server
return string