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!"); } }
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!"); } }
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!"); } }
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); } }
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(); } }