private void OnAuthenticationSucess(IAuthenticationSuccess i_success) { mLoginTimer.StepComplete(LibraryAnalyticEvents.AUTH_TIME); MyMessenger.Send <LogTypes, string, string>(MyLogger.LOG_EVENT, LogTypes.Info, "Authenticate success", ""); mBackend.MakeCloudCall("onLogin", null, OnLogin); }
private void SendOpenRequestToServer(ITimedChestData i_data, ITimedChestPM i_chestPM) { Dictionary <string, string> cloudParams = new Dictionary <string, string>() { { "Id", i_data.GetId() } }; mBackend.MakeCloudCall(BackendMethods.OPEN_TIMED_CHEST, cloudParams, (result) => { OnOpenResponseFromServer(JsonConvert.DeserializeObject <OpenTimedChestResponse>(result["data"]), i_chestPM, i_data); }); }
public void MakeCloudCall(string i_methodName, Dictionary <string, string> i_params, Callback <Dictionary <string, string> > i_requestSuccessCallback) { mBackend.MakeCloudCall(i_methodName, i_params, i_requestSuccessCallback); }