C# Class BackendlessAPI.Service.MessagingService

ファイルを表示 Open project: Backendless/.NET-SDK Class Usage Examples

Public Methods

Method Description
Cancel ( string messageId ) : bool
Cancel ( string messageId, AsyncCallback callback ) : void
GetRegistrations ( AsyncCallback callback ) : void
MessagingService ( ) : System
PollMessages ( string channelName, string subscriptionId ) : List
PollMessages ( string channelName, string subscriptionId, AsyncCallback callback ) : void
Publish ( object message ) : Messaging.MessageStatus
Publish ( object message, Messaging publishOptions ) : Messaging.MessageStatus
Publish ( object message, Messaging publishOptions, Messaging deliveryOptions ) : Messaging.MessageStatus
Publish ( object message, string channelName ) : Messaging.MessageStatus
Publish ( object message, string channelName, Messaging publishOptions ) : Messaging.MessageStatus
Publish ( object message, string channelName, Messaging publishOptions, Messaging deliveryOptions ) : Messaging.MessageStatus
Publish ( object message, AsyncCallback callback ) : void
Publish ( object message, Messaging publishOptions, AsyncCallback callback ) : void
Publish ( object message, Messaging publishOptions, Messaging deliveryOptions, AsyncCallback callback ) : void
Publish ( object message, string channelName, AsyncCallback callback ) : void
Publish ( object message, string channelName, Messaging publishOptions, AsyncCallback callback ) : void
Publish ( object message, string channelName, Messaging publishOptions, Messaging deliveryOptions, AsyncCallback callback ) : void
RegisterDevice ( BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
RegisterDevice ( System.DateTime expiration, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
RegisterDevice ( List channels, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
RegisterDevice ( List channels, System.DateTime expiration, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
RegisterDevice ( string GCMSenderID ) : void
RegisterDevice ( string GCMSenderID, AsyncCallback callback ) : void
RegisterDevice ( string channel, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
RegisterDevice ( string GCMSenderID, System.DateTime expiration ) : void
RegisterDevice ( string GCMSenderID, System.DateTime expiration, AsyncCallback callback ) : void
RegisterDevice ( string GCMSenderID, List channels ) : void
RegisterDevice ( string GCMSenderID, List channels, AsyncCallback callback ) : void
RegisterDevice ( string GCMSenderID, List channels, System.DateTime expiration ) : void
RegisterDevice ( string GCMSenderID, List channels, System.DateTime expiration, AsyncCallback callback ) : void
RegisterDevice ( string GCMSenderID, string channel ) : void
RegisterDevice ( string GCMSenderID, string channel, AsyncCallback callback ) : void
RegisterDeviceOnServer ( ) : void
SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, List recipients, List attachments ) : void
SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, List recipients, List attachments, AsyncCallback responder ) : void
SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient ) : void
SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, AsyncCallback responder ) : void
SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, List attachments ) : void
SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, List attachments, AsyncCallback responder ) : void
SendHTMLEmail ( String subject, String messageBody, List recipients ) : void
SendHTMLEmail ( String subject, String messageBody, List recipients, AsyncCallback responder ) : void
SendHTMLEmail ( String subject, String messageBody, String recipient ) : void
SendHTMLEmail ( String subject, String messageBody, String recipient, AsyncCallback responder ) : void
SendTextEmail ( String subject, String messageBody, List recipients ) : void
SendTextEmail ( String subject, String messageBody, List recipients, AsyncCallback responder ) : void
SendTextEmail ( String subject, String messageBody, String recipient ) : void
SendTextEmail ( String subject, String messageBody, String recipient, AsyncCallback responder ) : void
SetUnityRegisterDevice ( UnityRegisterDevice unityRegisterDevice, UnityUnregisterDevice unityUnregisterDevice ) : void
Subscribe ( AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( int pollingInterval, AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( string channelName, AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( string channelName, AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( string channelName, int pollingInterval, AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( string channelName, int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
Subscribe ( AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
Subscribe ( AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
Subscribe ( int pollingInterval, AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
Subscribe ( int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
Subscribe ( string channelName, AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
Subscribe ( string channelName, AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
Subscribe ( string channelName, int pollingInterval, AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
Subscribe ( string channelName, int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
UnregisterDevice ( AsyncCallback callback ) : void
UnregisterDeviceOnServer ( ) : void

Private Methods

Method Description
PublishSync ( object message, string channelName, Messaging publishOptions, Messaging deliveryOptions ) : Messaging.MessageStatus
RegisterDeviceOnServer ( string deviceToken, AsyncCallback callback ) : void
UnregisterDeviceOnServer ( AsyncCallback callback ) : void
checkChannelName ( string channelName ) : void
subscribeForPollingAccess ( string channelName, Messaging subscriptionOptions ) : string
subscribeForPollingAccess ( string channelName, Messaging subscriptionOptions, AsyncCallback callback ) : void

Method Details

Cancel() public method

public Cancel ( string messageId ) : bool
messageId string
return bool

Cancel() public method

public Cancel ( string messageId, AsyncCallback callback ) : void
messageId string
callback AsyncCallback
return void

GetRegistrations() public method

public GetRegistrations ( AsyncCallback callback ) : void
callback AsyncCallback
return void

MessagingService() public method

public MessagingService ( ) : System
return System

PollMessages() public method

public PollMessages ( string channelName, string subscriptionId ) : List
channelName string
subscriptionId string
return List

PollMessages() public method

public PollMessages ( string channelName, string subscriptionId, AsyncCallback callback ) : void
channelName string
subscriptionId string
callback AsyncCallback
return void

Publish() public method

public Publish ( object message ) : Messaging.MessageStatus
message object
return Messaging.MessageStatus

Publish() public method

public Publish ( object message, Messaging publishOptions ) : Messaging.MessageStatus
message object
publishOptions Messaging
return Messaging.MessageStatus

Publish() public method

public Publish ( object message, Messaging publishOptions, Messaging deliveryOptions ) : Messaging.MessageStatus
message object
publishOptions Messaging
deliveryOptions Messaging
return Messaging.MessageStatus

Publish() public method

public Publish ( object message, string channelName ) : Messaging.MessageStatus
message object
channelName string
return Messaging.MessageStatus

Publish() public method

public Publish ( object message, string channelName, Messaging publishOptions ) : Messaging.MessageStatus
message object
channelName string
publishOptions Messaging
return Messaging.MessageStatus

Publish() public method

public Publish ( object message, string channelName, Messaging publishOptions, Messaging deliveryOptions ) : Messaging.MessageStatus
message object
channelName string
publishOptions Messaging
deliveryOptions Messaging
return Messaging.MessageStatus

Publish() public method

public Publish ( object message, AsyncCallback callback ) : void
message object
callback AsyncCallback
return void

Publish() public method

public Publish ( object message, Messaging publishOptions, AsyncCallback callback ) : void
message object
publishOptions Messaging
callback AsyncCallback
return void

Publish() public method

public Publish ( object message, Messaging publishOptions, Messaging deliveryOptions, AsyncCallback callback ) : void
message object
publishOptions Messaging
deliveryOptions Messaging
callback AsyncCallback
return void

Publish() public method

public Publish ( object message, string channelName, AsyncCallback callback ) : void
message object
channelName string
callback AsyncCallback
return void

Publish() public method

public Publish ( object message, string channelName, Messaging publishOptions, AsyncCallback callback ) : void
message object
channelName string
publishOptions Messaging
callback AsyncCallback
return void

Publish() public method

public Publish ( object message, string channelName, Messaging publishOptions, Messaging deliveryOptions, AsyncCallback callback ) : void
message object
channelName string
publishOptions Messaging
deliveryOptions Messaging
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
pushNotificationsBinding BackendlessAPI
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( System.DateTime expiration, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
expiration System.DateTime
pushNotificationsBinding BackendlessAPI
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( List channels, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
channels List
pushNotificationsBinding BackendlessAPI
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( List channels, System.DateTime expiration, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
channels List
expiration System.DateTime
pushNotificationsBinding BackendlessAPI
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID ) : void
GCMSenderID string
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, AsyncCallback callback ) : void
GCMSenderID string
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( string channel, BackendlessAPI pushNotificationsBinding = null, AsyncCallback callback = null ) : void
channel string
pushNotificationsBinding BackendlessAPI
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, System.DateTime expiration ) : void
GCMSenderID string
expiration System.DateTime
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, System.DateTime expiration, AsyncCallback callback ) : void
GCMSenderID string
expiration System.DateTime
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, List channels ) : void
GCMSenderID string
channels List
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, List channels, AsyncCallback callback ) : void
GCMSenderID string
channels List
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, List channels, System.DateTime expiration ) : void
GCMSenderID string
channels List
expiration System.DateTime
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, List channels, System.DateTime expiration, AsyncCallback callback ) : void
GCMSenderID string
channels List
expiration System.DateTime
callback AsyncCallback
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, string channel ) : void
GCMSenderID string
channel string
return void

RegisterDevice() public method

public RegisterDevice ( string GCMSenderID, string channel, AsyncCallback callback ) : void
GCMSenderID string
channel string
callback AsyncCallback
return void

RegisterDeviceOnServer() public method

public RegisterDeviceOnServer ( ) : void
return void

SendEmail() public method

public SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, List recipients, List attachments ) : void
subject String
bodyParts BackendlessAPI.Messaging.BodyParts
recipients List
attachments List
return void

SendEmail() public method

public SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, List recipients, List attachments, AsyncCallback responder ) : void
subject String
bodyParts BackendlessAPI.Messaging.BodyParts
recipients List
attachments List
responder AsyncCallback
return void

SendEmail() public method

public SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient ) : void
subject String
bodyParts BackendlessAPI.Messaging.BodyParts
recipient String
return void

SendEmail() public method

public SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, AsyncCallback responder ) : void
subject String
bodyParts BackendlessAPI.Messaging.BodyParts
recipient String
responder AsyncCallback
return void

SendEmail() public method

public SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, List attachments ) : void
subject String
bodyParts BackendlessAPI.Messaging.BodyParts
recipient String
attachments List
return void

SendEmail() public method

public SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, List attachments, AsyncCallback responder ) : void
subject String
bodyParts BackendlessAPI.Messaging.BodyParts
recipient String
attachments List
responder AsyncCallback
return void

SendHTMLEmail() public method

public SendHTMLEmail ( String subject, String messageBody, List recipients ) : void
subject String
messageBody String
recipients List
return void

SendHTMLEmail() public method

public SendHTMLEmail ( String subject, String messageBody, List recipients, AsyncCallback responder ) : void
subject String
messageBody String
recipients List
responder AsyncCallback
return void

SendHTMLEmail() public method

public SendHTMLEmail ( String subject, String messageBody, String recipient ) : void
subject String
messageBody String
recipient String
return void

SendHTMLEmail() public method

public SendHTMLEmail ( String subject, String messageBody, String recipient, AsyncCallback responder ) : void
subject String
messageBody String
recipient String
responder AsyncCallback
return void

SendTextEmail() public method

public SendTextEmail ( String subject, String messageBody, List recipients ) : void
subject String
messageBody String
recipients List
return void

SendTextEmail() public method

public SendTextEmail ( String subject, String messageBody, List recipients, AsyncCallback responder ) : void
subject String
messageBody String
recipients List
responder AsyncCallback
return void

SendTextEmail() public method

public SendTextEmail ( String subject, String messageBody, String recipient ) : void
subject String
messageBody String
recipient String
return void

SendTextEmail() public method

public SendTextEmail ( String subject, String messageBody, String recipient, AsyncCallback responder ) : void
subject String
messageBody String
recipient String
responder AsyncCallback
return void

SetUnityRegisterDevice() public method

public SetUnityRegisterDevice ( UnityRegisterDevice unityRegisterDevice, UnityUnregisterDevice unityUnregisterDevice ) : void
unityRegisterDevice UnityRegisterDevice
unityUnregisterDevice UnityUnregisterDevice
return void

Subscribe() public method

public Subscribe ( AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
callback AsyncCallback
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
callback AsyncCallback
subscriptionOptions Messaging
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( int pollingInterval, AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
pollingInterval int
callback AsyncCallback
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
pollingInterval int
callback AsyncCallback
subscriptionOptions Messaging
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( string channelName, AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
channelName string
callback AsyncCallback
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( string channelName, AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
channelName string
callback AsyncCallback
subscriptionOptions Messaging
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( string channelName, int pollingInterval, AsyncCallback callback ) : Messaging.BackendlessAPI.Messaging.Subscription
channelName string
pollingInterval int
callback AsyncCallback
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( string channelName, int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions ) : Messaging.BackendlessAPI.Messaging.Subscription
channelName string
pollingInterval int
callback AsyncCallback
subscriptionOptions Messaging
return Messaging.BackendlessAPI.Messaging.Subscription

Subscribe() public method

public Subscribe ( AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
callback AsyncCallback
subscriptionCallback AsyncCallback
return void

Subscribe() public method

public Subscribe ( AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
callback AsyncCallback
subscriptionOptions Messaging
subscriptionCallback AsyncCallback
return void

Subscribe() public method

public Subscribe ( int pollingInterval, AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
pollingInterval int
callback AsyncCallback
subscriptionCallback AsyncCallback
return void

Subscribe() public method

public Subscribe ( int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
pollingInterval int
callback AsyncCallback
subscriptionOptions Messaging
subscriptionCallback AsyncCallback
return void

Subscribe() public method

public Subscribe ( string channelName, AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
channelName string
callback AsyncCallback
subscriptionCallback AsyncCallback
return void

Subscribe() public method

public Subscribe ( string channelName, AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
channelName string
callback AsyncCallback
subscriptionOptions Messaging
subscriptionCallback AsyncCallback
return void

Subscribe() public method

public Subscribe ( string channelName, int pollingInterval, AsyncCallback callback, AsyncCallback subscriptionCallback ) : void
channelName string
pollingInterval int
callback AsyncCallback
subscriptionCallback AsyncCallback
return void

Subscribe() public method

public Subscribe ( string channelName, int pollingInterval, AsyncCallback callback, Messaging subscriptionOptions, AsyncCallback subscriptionCallback ) : void
channelName string
pollingInterval int
callback AsyncCallback
subscriptionOptions Messaging
subscriptionCallback AsyncCallback
return void

UnregisterDevice() public method

public UnregisterDevice ( AsyncCallback callback ) : void
callback AsyncCallback
return void

UnregisterDeviceOnServer() public method

public UnregisterDeviceOnServer ( ) : void
return void