public AppleNotification(string deviceToken, AppleNotificationPayload payload) { if (!string.IsNullOrEmpty(deviceToken) && deviceToken.Length != 64) { throw new NotificationFailureException(5, this); } this.DeviceToken = deviceToken; this.Payload = payload; this.Identifier = AppleNotification.GetNextIdentifier(); }
public AppleNotification() { this.DeviceToken = string.Empty; this.Payload = new AppleNotificationPayload(); this.Identifier = AppleNotification.GetNextIdentifier(); }