Пример #1
0
 public SentNotification(AppleNotification notification)
 {
     this.Notification = notification;
     this.SentAt       = DateTime.UtcNow;
     this.Identifier   = notification.Identifier;
 }
Пример #2
0
 public static AppleNotification ForDeviceToken(this AppleNotification n, string deviceToken)
 {
     n.DeviceToken = deviceToken;
     return(n);
 }
Пример #3
0
        public static AppleNotification WithTag(this AppleNotification n, object tag)
        {
            n.Tag = tag;

            return(n);
        }
Пример #4
0
 public static AppleNotification WithExpiry(this AppleNotification n, DateTime expiryDate)
 {
     n.Expiration = expiryDate;
     return(n);
 }
Пример #5
0
        public static AppleNotification WithPayload(this AppleNotification n, AppleNotificationPayload payload)
        {
            n.Payload = payload;

            return(n);
        }
Пример #6
0
 public NotificationFailureException(int errorStatusCode, AppleNotification notification) : base()
 {
     this.ErrorStatusCode = errorStatusCode;
     this.Notification    = notification;
 }