public void parseHttpDataAll(JSONObject jsonObject) throws JSONException { _rootJsonObject = jsonObject; parseApiError(_rootJsonObject.getJSONArray("errors")); if (hasError()) { // api return error, we should return if (AppConfig.getApiMessageDebug()) { for (ApiFault apiFault : errorList) { LogUtils.d(this.getClass().getSimpleName(), apiFault.toString()); } } mListener.onApiError(errorList); return; } mListener.onApiDone(parseResultData(jsonObject.getJSONObject("data"))); }
@Override public void onFailure(Throwable throwable) { mListener.onApiProcessError(); }