C# Class Microsoft.WindowsPhone.Samples.Notifications.ToastPushNotificationMessage

Represents a toast push notification message.
Toast notifications are system-wide notifications that do not disrupt the user workflow or require intervention to resolve. They are displayed at the top of the screen for ten seconds before disappearing. If the toast notification is tapped, the application that sent the toast notification will launch. A toast notification can be dismissed with a flick. This class members are thread safe.
Inheritance: PushNotificationMessage
Show file Open project: WindowsAzure-Toolkits/wa-toolkit-wp-nugets Class Usage Examples

Public Methods

Method Description
ToastPushNotificationMessage ( ) : System

Initializes a new instance of the TilePushNotificationMessage class. Initializes a new instance of this type with MessageSendPriority.Normal send priority.

ToastPushNotificationMessage ( MessageSendPriority sendPriority ) : System

Initializes a new instance of the ToastPushNotificationMessage class. Initializes a new instance of this type.

Protected Methods

Method Description
OnCreatePayload ( ) : byte[]

Create the toast message payload.

OnInitializeRequest ( HttpWebRequest request ) : void

Initialize the request with toast specific headers.

VerifyPayloadSize ( byte payload ) : void

Method Details

OnCreatePayload() protected method

Create the toast message payload.
protected OnCreatePayload ( ) : byte[]
return byte[]

OnInitializeRequest() protected method

Initialize the request with toast specific headers.
protected OnInitializeRequest ( HttpWebRequest request ) : void
request System.Net.HttpWebRequest The message request.
return void

ToastPushNotificationMessage() public method

Initializes a new instance of the TilePushNotificationMessage class. Initializes a new instance of this type with MessageSendPriority.Normal send priority.
public ToastPushNotificationMessage ( ) : System
return System

ToastPushNotificationMessage() public method

Initializes a new instance of the ToastPushNotificationMessage class. Initializes a new instance of this type.
public ToastPushNotificationMessage ( MessageSendPriority sendPriority ) : System
sendPriority MessageSendPriority /// The send priority of this message in the MPNS. ///
return System

VerifyPayloadSize() protected method

protected VerifyPayloadSize ( byte payload ) : void
payload byte
return void