@Override public void setRequestSuc(String url, int statusCode, Header[] headers, JsonObject jo) { super.setRequestSuc(url, statusCode, headers, jo); try { } catch (Exception e) { ToastUtil.printErr(e); } }
@Override public void init( View rootView, LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.init(rootView, inflater, container, savedInstanceState); init(); setListener(); updateView(); loadData(); }
@Override public void setRequestNotSuc(String url, int statusCode, Header[] headers, JsonObject jo) { super.setRequestNotSuc(url, statusCode, headers, jo); ToastUtil.toastAlways(getActivity(), jo.getAsJsonPrimitive(HMApi.KEY_MSG).getAsString()); }
@Override public void setRequestFinish() { super.setRequestFinish(); }
@Override public void setRequestErr( String url, int statusCode, Header[] headers, String str, Throwable throwable) { super.setRequestErr(url, statusCode, headers, str, throwable); ToastUtil.toastAlways(getActivity(), str); }