public static void SendUnregisterRequest(Unregister_Demo unreg)
        {
            string registerMethod = "RemoteAPI/UnregisterDevice";

            if (unreg.validate()) // if validation is OK and we configured all the nececcery fields, we can continue.
            {
                SendRequest(registerMethod, (Object)unreg);
            }
        }
Esempio n. 2
0
 public static void SendUnregisterRequest(Unregister_Demo unreg)
 {
     string registerMethod = "RemoteAPI/UnregisterDevice";
     if (unreg.validate()) // if validation is OK and we configured all the nececcery fields, we can continue.
     {
         SendRequest(registerMethod, (Object)unreg);
     }
 }
Esempio n. 3
0
 /**
  * Method is simulating an unregister request being sent to PushApps server.
 */
 public static void SendUnregisterRequest()
 {
     Unregister_Demo unregister = new Unregister_Demo();
     unregister.SecretToken = SecretToken;
     unregister.DeviceId = "This is my device ID";
     ActionsManager.SendUnregisterRequest(unregister);
 }