Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
    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());
    }
    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());
        }
    }