Exemple #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;
        }
Exemple #2
0
 public Notification()
 {
     DeviceToken = string.Empty;
     Payload     = new NotificationPayload();
 }