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;
		}
        public Notification(string deviceToken)
        {
            if (!string.IsNullOrEmpty(deviceToken) && deviceToken.Length != DEVICE_TOKEN_STRING_SIZE)
                throw new BadDeviceTokenException(deviceToken, CustomMessageId);

            DeviceToken = deviceToken;
            Payload = new NotificationPayload();
        }
Beispiel #3
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 #4
0
        public Notification(string deviceToken)
        {
            if (!string.IsNullOrEmpty(deviceToken) && deviceToken.Length != DEVICE_TOKEN_STRING_SIZE)
            {
                throw new BadDeviceTokenException(deviceToken);
            }

            MaxPayloadSize = 256;
            DeviceToken    = deviceToken;
            Payload        = new NotificationPayload();
        }
Beispiel #5
0
		public Notification()
		{
		    DeviceToken = string.Empty;
		    Payload = new NotificationPayload();
		}
Beispiel #6
0
 public Notification()
 {
     DeviceToken = string.Empty;
     Payload     = new NotificationPayload();
 }
Beispiel #7
0
 public Notification()
 {
     MaxPayloadSize = 256;
     DeviceToken    = string.Empty;
     Payload        = new NotificationPayload();
 }
Beispiel #8
0
 public Notification()
 {
     MaxPayloadSize = 256;
     DeviceToken = string.Empty;
     Payload = new NotificationPayload();
 }