public void OnSuccess(object response) { PushNotification pushNotification = (PushNotification)response; Debug.Log("Notification for " + pushNotification.GetUserName()); Debug.Log("Device Type is " + pushNotification.GetType()); Debug.Log("DeviceToken is " + pushNotification.GetDeviceToken()); Debug.Log("Message is: " + pushNotification.GetMessage()); Debug.Log("Sent on date&time : " + pushNotification.GetExpiry()); Debug.Log("pushNotification : " + pushNotification.GetStrResponse()); Debug.Log("pushNotification : " + pushNotification.GetTotalRecords()); }
public void OnSuccess(object responsePush) { response = responsePush.ToString(); PushNotification pushNotification = (PushNotification)responsePush; Debug.Log("UserName : "******"Expiery : " + pushNotification.GetExpiry()); Debug.Log("DeviceToken : " + pushNotification.GetDeviceToken()); Debug.Log("pushNotification : " + pushNotification.GetMessage()); Debug.Log("pushNotification : " + pushNotification.GetStrResponse()); Debug.Log("pushNotification : " + pushNotification.GetTotalRecords()); Debug.Log("pushNotification : " + pushNotification.GetType()); }
/// <summary> /// Handles when a push notification has been received. /// </summary> /// <param name="notification">A push notification.</param> public void HandlePushNotificationReceived(PushNotification notification) { Type notificationType = notification.GetType(); List <Action <object> > handlers; if (this.notificationHandlers.TryGetValue(notificationType, out handlers)) { foreach (Action <object> handler in handlers) { handler(notification); } } }
public void OnSuccess(object response) { if (response is PushNotification) { PushNotification pushNotification = (PushNotification)response; Debug.Log("UserName : "******"Expiery : " + pushNotification.GetExpiry()); Debug.Log("DeviceToken : " + pushNotification.GetDeviceToken()); Debug.Log("pushNotification : " + pushNotification.GetMessage()); Debug.Log("pushNotification : " + pushNotification.GetStrResponse()); Debug.Log("pushNotification : " + pushNotification.GetTotalRecords()); Debug.Log("pushNotification : " + pushNotification.GetType()); // for(int i = 0 ; i < pushNotification.GetChannelList) // Debug.Log ("pushNotification : " + pushNotification.GetChannelList()[0].GetName()); // Debug.Log ("pushNotification : " + pushNotification.GetChannelList()[0].GetName()); // Debug.Log ("pushNotification : " + pushNotification.GetChannelList()[0].GetType()); } }