public NotificationPayload(string deviceToken) { DeviceToken = deviceToken; Alert = new NotificationAlert(); CustomItems = new Dictionary <string, object[]>(); CustomItemsJson = new Dictionary <string, Dictionary <string, object> >(); }
public NotificationPayload(string deviceToken, string alert, int badge) { DeviceToken = deviceToken; Alert = new NotificationAlert() { Body = alert }; Badge = badge; CustomItems = new Dictionary <string, object[]>(); CustomItemsJson = new Dictionary <string, Dictionary <string, object> >(); }
public NotificationPayload(string deviceToken, string alert, int badge, string sound, string contentAvailable) { DeviceToken = deviceToken; Alert = new NotificationAlert() { Body = alert }; Badge = badge; Sound = sound; ContentAvailable = contentAvailable; CustomItems = new Dictionary <string, object[]>(); CustomItemsJson = new Dictionary <string, Dictionary <string, object> >(); }