@Override public void onLoadSuccess(List<RuangDiskusiObject> list) { view.hideLoading(); if (list.size() > 0) { view.hideEmptyView(); view.showDiscussionRoom(list); } else { view.showEmptyView(); } }
@Override public void onLoadMoreSuccess(List<RuangDiskusiObject> list) { view.addMoreList(list); }
@Override public void onReloadSuccess(List<RuangDiskusiObject> list) { view.hideRefreshLoading(); view.reloadDiscussionRoom(list); }
@Override public void onLoadFailed(String message) { view.showError(message); view.hideEmptyView(); view.hideLoading(); }
public void loadDiscussionRoom() { view.showLoading(); interactorImp.loadDiscussionRoom(this); }
public void onFABClick() { if (view != null) { view.navigateToCreateDiscussion(); } }