Interface OffersListView
-
- All Superinterfaces:
EndlessListView,LceView,ListView,MvpLceView,MvpView,RefreshableView
- All Known Implementing Classes:
OffersClippedFragment,OffersListFragment
public interface OffersListView extends EndlessListView
TheMvpViewclass forOffersListFragment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendOffersList(java.util.List<Offer> offers, int totalEntries)Notifies the view to append the existingOfferlist.voidrefreshList()Refresh the current list by callingOffersListPresenter.refreshData()voidshowErrorDialog(java.lang.String error)Callback when clipping an offer failedvoidshowOfferCategoryFilter(java.util.List<OfferCategory> offerCategories)Notifies the view to initialize theOfferCategoryfilter.voidshowOffersList(java.util.List<Offer> offers, int totalEntries)Notifies the view to show theOfferlist.-
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
-
showOffersList
void showOffersList(java.util.List<Offer> offers, int totalEntries)
Notifies the view to show theOfferlist. This also means that the GET offers API was successful- Parameters:
offers- the list ofOffertotalEntries- the total number of offers
-
appendOffersList
void appendOffersList(java.util.List<Offer> offers, int totalEntries)
Notifies the view to append the existingOfferlist. This also means that the GET offers API with pagination was successful- Parameters:
offers- the list ofOffertotalEntries- total number of offers
-
refreshList
void refreshList()
Refresh the current list by callingOffersListPresenter.refreshData()
-
showErrorDialog
void showErrorDialog(java.lang.String error)
Callback when clipping an offer failed- Parameters:
error- error message
-
showOfferCategoryFilter
void showOfferCategoryFilter(java.util.List<OfferCategory> offerCategories)
Notifies the view to initialize theOfferCategoryfilter. This also means that the GET offer categories API was successful- Parameters:
offerCategories- list ofOfferCategory
-
-