예제 #1
0
        public static AppleNotification WithTag(this AppleNotification n, object tag)
        {
            n.Tag = tag;

            return(n);
        }
예제 #2
0
 public static AppleNotification WithExpiry(this AppleNotification n, DateTime expiryDate)
 {
     n.Expiration = expiryDate;
     return(n);
 }
예제 #3
0
        public static AppleNotification WithPayload(this AppleNotification n, AppleNotificationPayload payload)
        {
            n.Payload = payload;

            return(n);
        }
예제 #4
0
 public static AppleNotification ForDeviceToken(this AppleNotification n, string deviceToken)
 {
     n.DeviceToken = deviceToken;
     return(n);
 }
예제 #5
0
 public NotificationFailureException(int errorStatusCode, AppleNotification notification)
     : base()
 {
     this.ErrorStatusCode = errorStatusCode;
     this.Notification    = notification;
 }
예제 #6
0
 public SentNotification(AppleNotification notification)
 {
     this.Notification = notification;
     this.SentAt       = DateTime.UtcNow;
     this.Identifier   = notification.Identifier;
 }