C# Class _02.PubNub.PubnubAPI

Afficher le fichier Open project: vladislav-karamfilov/TelerikAcademy Class Usage Examples

Méthodes publiques

Méthode Description
History ( string channel, int limit ) : List
Publish ( string channel, object message ) : List
PubnubAPI ( string publish_key, string subscribe_key ) : System
PubnubAPI ( string publish_key, string subscribe_key, string secret_key ) : System
PubnubAPI ( string publish_key, string subscribe_key, string secret_key, bool ssl_on ) : System
Subscribe ( string channel, Procedure callback ) : void
Time ( ) : object
init ( string publish_key, string subscribe_key, string secret_key, bool ssl_on ) : void

Private Methods

Méthode Description
_encodeURIcomponent ( string s ) : string
_request ( List url_components ) : List
_subscribe ( string channel, Procedure callback, object timetoken ) : void
isUnsafe ( char ch ) : bool
md5 ( string text ) : string
toHex ( int ch ) : char

Method Details

History() public méthode

public History ( string channel, int limit ) : List
channel string
limit int
Résultat List

Publish() public méthode

public Publish ( string channel, object message ) : List
channel string
message object
Résultat List

PubnubAPI() public méthode

public PubnubAPI ( string publish_key, string subscribe_key ) : System
publish_key string
subscribe_key string
Résultat System

PubnubAPI() public méthode

public PubnubAPI ( string publish_key, string subscribe_key, string secret_key ) : System
publish_key string
subscribe_key string
secret_key string
Résultat System

PubnubAPI() public méthode

public PubnubAPI ( string publish_key, string subscribe_key, string secret_key, bool ssl_on ) : System
publish_key string
subscribe_key string
secret_key string
ssl_on bool
Résultat System

Subscribe() public méthode

public Subscribe ( string channel, Procedure callback ) : void
channel string
callback Procedure
Résultat void

Time() public méthode

public Time ( ) : object
Résultat object

init() public méthode

public init ( string publish_key, string subscribe_key, string secret_key, bool ssl_on ) : void
publish_key string
subscribe_key string
secret_key string
ssl_on bool
Résultat void