Ejemplo n.º 1
0
 public override void Process(GenieResponseWrapper inWrapper)
 {
     if (inWrapper.getStatus() != "successful")
     {
         Debug.LogFormat("Sending this event was unsuccessful: {0}", inWrapper.getError());
     }
     else
     {
         Logger.Log("Send was successful!");
     }
 }
Ejemplo n.º 2
0
 public override void Process(GenieResponseWrapper inWrapper)
 {
     Genie.I.IsSyncing = false;
     if (inWrapper.getStatus() != "successful")
     {
         Debug.LogWarningFormat("Unable to sync with Genie: {0}", inWrapper.getError());
     }
     else
     {
         Logger.Log("Sync was successful!");
     }
 }
Ejemplo n.º 3
0
 public override void Process(GenieResponseWrapper inWrapper)
 {
     if (inWrapper.getStatus() != "successful")
     {
         Genie.instance.MakeAnonymousResult(false);
     }
     else
     {
         Genie.instance.MakeAnonymousResult(true);
         Logger.Log("Successfully created an anonymous user!");
     }
 }
Ejemplo n.º 4
0
 public override void Process(GenieResponseWrapper inWrapper)
 {
     if (inWrapper.getStatus() == "successful")
     {
         Logger.Log("Successfully found the current user: {0}!", inWrapper.getStringResult("uid"));
         Genie.instance.GetUserResult(true, inWrapper);
     }
     else
     {
         Logger.Log("Unable to find current user.");
         Genie.instance.GetUserResult(false, inWrapper);
     }
 }
Ejemplo n.º 5
0
 public override void Process(GenieResponseWrapper inWrapper)
 {
     if (inWrapper.getStatus() == "successful")
     {
         string uid = inWrapper.getStringResult("uid");
         if (uid != Genie.I.UserID)
         {
             Logger.Log("User changed partway through - restarting the application.");
             Genie.I.LogEnd();
             Genie.instance.GetUserResult(true, inWrapper);
             AndroidHelper.RestartActivity();
         }
     }
     else
     {
         AndroidToast.Show("Please sign back into Genie.");
         AndroidHelper.KillActivity();
     }
 }