ApnsNotification

Overview

Represents a notification that is sent to the Apple push notification service. Each notification contains a DeviceToken that specifies the target device for the notification, a NotificationPayload that contains the notification information to send and an expiry date that specifies when the notification must be sent by.

Public Constructors

public ApnsNotification(DeviceToken deviceToken, NotificationPayload notificationPayload)

Parameter Name Parameter Type Description
deviceToken DeviceToken An instance of a DeviceToken class the specifies the device to send to.
notificationPayload NotificationPayload An instance of a NotificationPayload class the specifies the notification data to send to the specified device

Public Properties

Expiry
public DateTime Expiry { get; set; }

Specifies the date at which the message will expire. If the message has not been delivered to the device by this date, the message will be discarded.

DeviceToken
public DeviceToken DeviceToken { get; set; }

An instance of a DeviceToken class the specifies the device to send to.

NotificationPayload
public NotificationPayload NotificationPayload { get; set; }

An instance of a NotificationPayload class the specifies the notification data to send to the specified device.

Last edited Jul 13, 2011 at 2:48 PM by owenssam, version 4

Comments

No comments yet.