@Override public void onResponse(PersistentMutationsResponse response) { Log.d("NOTERROR", response.getMutationClassName()); }
@Override public void onResponse(@Nonnull InterceptorResponse response) { callBack.onResponse(response); if ( callbackForPersistentMutation != null) { JSONObject jsonObject; try { jsonObject = new JSONObject(response.clonedBufferString.get()); callbackForPersistentMutation.onResponse(new PersistentMutationsResponse( jsonObject.getJSONObject("data"), jsonObject.getJSONArray("errors"), request.operation.getClass().getSimpleName(), object.recordIdentifier)); } catch (Exception e) { callbackForPersistentMutation.onFailure(new PersistentMutationsError( request.operation.getClass().getSimpleName(), object.recordIdentifier, new ApolloParseException(e.getLocalizedMessage())) ); } } appSyncOfflineMutationManager.setInProgressPersistentMutationAsCompleted(object.recordIdentifier); queueHandler.clearInMemoryOfflineMutationObjectBeingExecuted(); queueHandler.clearPersistentOfflineMutationObjectBeingExecuted(); queueHandler.sendEmptyMessage(MessageNumberUtil.SUCCESSFUL_EXEC); }
@Override public void onResponse(PersistentMutationsResponse response) { Log.d(TAG, response.getMutationClassName()); }
@Override public void onResponse(PersistentMutationsResponse response) { Log.d("NOTERROR", response.getMutationClassName()); }
@Override public void onResponse(PersistentMutationsResponse response) { Log.d(TAG, response.getMutationClassName()); }