Beispiel #1
0
        public Notification(string deviceToken, NotificationPayload payload)
        {
            if (!string.IsNullOrEmpty(deviceToken) && deviceToken.Length != DEVICE_TOKEN_STRING_SIZE)
            {
                throw new BadDeviceTokenException(deviceToken);
            }

            DeviceToken = deviceToken;
            Payload     = payload;
        }
Beispiel #2
0
 public Notification()
 {
     DeviceToken = string.Empty;
     Payload     = new NotificationPayload();
 }