public static AppleNotification WithTag(this AppleNotification n, object tag) { n.Tag = tag; return(n); }
public static AppleNotification WithExpiry(this AppleNotification n, DateTime expiryDate) { n.Expiration = expiryDate; return(n); }
public static AppleNotification WithPayload(this AppleNotification n, AppleNotificationPayload payload) { n.Payload = payload; return(n); }
public static AppleNotification ForDeviceToken(this AppleNotification n, string deviceToken) { n.DeviceToken = deviceToken; return(n); }
public NotificationFailureException(int errorStatusCode, AppleNotification notification) : base() { this.ErrorStatusCode = errorStatusCode; this.Notification = notification; }
public SentNotification(AppleNotification notification) { this.Notification = notification; this.SentAt = DateTime.UtcNow; this.Identifier = notification.Identifier; }