C# Class PubNubMessaging.Core.PubnubExample

Show file Open project: pubnub/c-sharp

Public Properties

Property Type Description
authKey string
channel string
deliveryStatus bool
presenceHeartbeat int
presenceHeartbeatInterval int
pubnub Pubnub
showDebugMessages bool
showErrorMessageSegments bool

Public Methods

Method Description
Main ( ) : void

Private Methods

Method Description
DisplayErrorMessage ( PubnubClientError result ) : void

Callback method for error messages

DisplayErrorMessageSegments ( PubnubClientError pubnubError ) : void
DisplayPresenceConnectStatusMessage ( string result ) : void

Callback method to provide the connect status of Presence call

DisplayPresenceDisconnectStatusMessage ( string result ) : void
DisplayPresenceReturnMessage ( string result ) : void

Callback method captures the response in JSON string format for Presence

DisplayReturnMessage ( string result ) : void

Callback method captures the response in JSON string format for all operations

DisplaySubscribeConnectStatusMessage ( string result ) : void

Callback method to provide the connect status of Subscribe call

DisplaySubscribeDisconnectStatusMessage ( string result ) : void
DisplaySubscribeReturnMessage ( string result ) : void

Callback method captures the response in JSON string format for Subscribe

DisplayWildCardPresenceReturnMessage ( string result ) : void

Callback method captures wildcard presence events for Subscribe

UnhandledExceptionTrapper ( object sender, UnhandledExceptionEventArgs e ) : void

Method Details

Main() static public method

static public Main ( ) : void
return void

Property Details

authKey static public property

static public string authKey
return string

channel static public property

static public string channel
return string

deliveryStatus static public property

static public bool deliveryStatus
return bool

presenceHeartbeat static public property

static public int presenceHeartbeat
return int

presenceHeartbeatInterval static public property

static public int presenceHeartbeatInterval
return int

pubnub static public property

static public Pubnub pubnub
return Pubnub

showDebugMessages static public property

static public bool showDebugMessages
return bool

showErrorMessageSegments static public property

static public bool showErrorMessageSegments
return bool