void OnReceiveAppUpdateData(WebRequestAgent.WebResponseData data) { if (data.responseType != WebRequestAgent.ResponseDataType.Text) { Debug.LogError("Downloading app update data failed!"); return; } remoteConfig = JsonUtility.FromJson <AppUpdateConfig>(data.text); }
void OnReceiveVipIDLibraryResponse(WebRequestAgent.WebResponseData data) { bool serverQuerySucceed = false; if (data.responseType == WebRequestAgent.ResponseDataType.Text) { serverQuerySucceed = true; idDataCache.AddRange(StringToIDList(data.text)); } idDataCache.AddRange(StringToIDList(ReadLocalConfig())); contentReadyHandler?.Invoke(idDataCache, serverQuerySucceed); contentReadyHandler = null; inCommitingProcess = false; }
void OnReceiveNotifySubscribersResponse(WebRequestAgent.WebResponseData data) { try { if (data.responseType == WebRequestAgent.ResponseDataType.Text) { notifySubscriberSettings = JsonUtility.FromJson <NotifySubcriberSettings>(data.text); } else { notifySubscriberSettings = null; Debug.LogError("Response Type Not Matched!"); } } catch (Exception e) { Debug.LogError(e.Message); } inCommitingProcess = false; }