@Override public void onSuccessLoad(int tag, Object result) { if (tag == getMyLikeModel.getTag()) { MyLikeSpecialResponse response = (MyLikeSpecialResponse) result; MyLikeSpecialEntity entity = response.getData(); datas.addAll(entity.getDatas()); adapter.notifyDataSetChanged(); myticketRefresh.setRefreshing(false); } myticketRecyclerview.loadMoreComplete(); }
@Override public void initData() { getMyLikeModel.setViewModelInterface(this); getMyLikeModel.start(pageNo + ""); adapter.setOnItemClickLitener(this); }
@Override public void onLoadMore() { pageNo++; getMyLikeModel.start(pageNo + ""); }