@Override public void onBusinessError(int errorCode, String errorMessage) { super.onBusinessError(errorCode, errorMessage); if (netErrorUtils != null) { netErrorUtils.showNetError(false); } }
@Override public void onNetworkError(VolleyError error) { super.onNetworkError(error); if (netErrorUtils != null) { netErrorUtils.showNetError(true); } }
@Override public void onSuccess(ListModule obj) { super.onSuccess(obj); if (isclearList) { list.clear(); } if (obj != null) { lastid = obj.nextPageFlag; hasMore = obj.nextPageFlag != 0; if (obj.list != null) { addListData(obj.list); } } if (list == null || list.size() == 0) { addListData(JSONArray.parseArray("[{id:-101}]")); } if (adapter == null) { adapter = new MyAdapter(list); refreshView.setAdapter(adapter); } adapter.notifyDataSetChanged(); refreshView.onRefreshComplete(); }