internal void OnUnmergedDataRead(GooglePlayGames.Native.PInvoke.SnapshotManager.ReadResponse readResponse) { lock (this.mLock) { if (!readResponse.RequestSucceeded()) { Logger.e("Encountered error while prefetching unmerged data."); this.completedCallback(NativeSavedGameClient.AsRequestStatus(readResponse.ResponseStatus()), (ISavedGameMetadata)null); this.completedCallback = (Action <SavedGameRequestStatus, ISavedGameMetadata>)((_param0, _param1) => {}); } else { Logger.d("Successfully fetched unmerged data"); this.mUnmergedDataFetched = true; this.mUnmergedData = readResponse.Data(); this.MaybeProceed(); } } }
internal void OnOriginalDataRead(GooglePlayGames.Native.PInvoke.SnapshotManager.ReadResponse readResponse) { lock (mLock) { if (!readResponse.RequestSucceeded()) { Logger.e("Encountered error while prefetching original data."); completedCallback(AsRequestStatus(readResponse.ResponseStatus()), null); completedCallback = delegate { }; } else { Logger.d("Successfully fetched original data"); mOriginalDataFetched = true; mOriginalData = readResponse.Data(); MaybeProceed(); } } }