Interface OfferResponseListView
-
- All Superinterfaces:
EndlessListView,LceView,ListView,MvpLceView,MvpView,RefreshableView
- All Known Implementing Classes:
OfferResponseListFragment
public interface OfferResponseListView extends EndlessListView
An interface that extendsEndlessListViewfor the list and has methods that is called in presenter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendOfferResponseList(java.util.List<OfferResponse> offerResponse, int totalEntries)Notifies the view to append the existingOfferResponselist.voidrefreshList()Refresh the list by clearing the cache and recalling the GET offer response APIvoidshowOfferResponseList(java.util.List<OfferResponse> offerResponse, int totalEntries)Notifies the view to show theOfferResponselist.-
Methods inherited from interface com.cheetahdigital.uikit.widget.list.EndlessListView
onFinishLoadMore, onLoadMoreFailed
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.LceView
onLoadFailed, onLoadSuccess, setErrorViewClickListener
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.MvpLceView
showContent, showError, showLoading
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
onFinishRefresh, onRefreshFailed
-
-
-
-
Method Detail
-
showOfferResponseList
void showOfferResponseList(java.util.List<OfferResponse> offerResponse, int totalEntries)
Notifies the view to show theOfferResponselist. This also means that the GET offer response API was successful- Parameters:
offerResponse- list of offer responsetotalEntries- total expected entries regardless of pagination
-
appendOfferResponseList
void appendOfferResponseList(java.util.List<OfferResponse> offerResponse, int totalEntries)
Notifies the view to append the existingOfferResponselist. This also means that the GET offer response API with pagination was successful- Parameters:
offerResponse- list of the next set of offer responsetotalEntries- total expected entries regardless of pagination
-
refreshList
void refreshList()
Refresh the list by clearing the cache and recalling the GET offer response API
-
-