Interface OffersWithResponsesListView
-
- All Superinterfaces:
EndlessListView,LceView,ListView,MvpLceView,MvpView,RefreshableView
- All Known Implementing Classes:
ClippedOffersWithResponsesListFragment,OffersWithResponsesListFragment
public interface OffersWithResponsesListView extends EndlessListView
MvpViewclass ofOffersWithResponsesListFragment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendOffersList(java.util.List<BaseData> offersWithResponses, int totalEntries)Notifies the view to show the list ofBaseData.voidrefreshItem(java.lang.String errorMessage, int id)Notifies the view to refresh the item.voidshowOffersList(java.util.List<BaseData> offersWithResponses, int totalEntries)Notifies the view to show the list ofBaseData.voidupdateClipState(int id)Notifies the view to update the clip status of the given id-
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<BaseData> offersWithResponses, int totalEntries)
Notifies the view to show the list ofBaseData. This list contains two objects:OfferandOfferResponse. This also means that the GET offers with responses API was successful.- Parameters:
offersWithResponses- this list of offer and offer responsetotalEntries- the total number of offers
-
appendOffersList
void appendOffersList(java.util.List<BaseData> offersWithResponses, int totalEntries)
Notifies the view to show the list ofBaseData. This list contains two objects:OfferandOfferResponse. This also means that the GET offers with responses API with pagination was successful.- Parameters:
offersWithResponses- this list of offer and offer responsetotalEntries- the total number of offers
-
updateClipState
void updateClipState(int id)
Notifies the view to update the clip status of the given id- Parameters:
id- offer or offer response id
-
refreshItem
void refreshItem(java.lang.String errorMessage, int id)Notifies the view to refresh the item. This is called when clipping/unclipping fails.- Parameters:
errorMessage- error messageid- id offer or offer response id
-
-