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