Interface GiftcardsListView
-
- All Superinterfaces:
EndlessListView,LceView,ListView,MvpLceView,MvpView,RefreshableView
- All Known Implementing Classes:
GiftcardsListFragment
public interface GiftcardsListView extends EndlessListView
View to be implemented forGiftcardsListFragment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendGiftcardsList(java.util.List<Giftcard> giftcards, int totalEntries)This notifies the view to append a list ofGiftcardto the existing list fromshowGiftcardsList(List, int)voidprocessSuccessfulPurchaseResponse(PurchaseResponse response)This notifies the view that gift card purchase API has respondedvoidpurchaseFailed(java.lang.String error)This notifies the view that gift card purchase API has failedvoidshowGiftcardsList(java.util.List<Giftcard> giftcards, int totalEntries)This notifies the view to show the list ofGiftcard-
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
-
showGiftcardsList
void showGiftcardsList(java.util.List<Giftcard> giftcards, int totalEntries)
This notifies the view to show the list ofGiftcard- Parameters:
giftcards- list ofGiftcardtotalEntries- total number of items
-
appendGiftcardsList
void appendGiftcardsList(java.util.List<Giftcard> giftcards, int totalEntries)
This notifies the view to append a list ofGiftcardto the existing list fromshowGiftcardsList(List, int)- Parameters:
giftcards- list ofGiftcardfor a certain pagetotalEntries- total number of items
-
processSuccessfulPurchaseResponse
void processSuccessfulPurchaseResponse(PurchaseResponse response)
This notifies the view that gift card purchase API has responded- Parameters:
response- purchase response
-
purchaseFailed
void purchaseFailed(java.lang.String error)
This notifies the view that gift card purchase API has failed- Parameters:
error- error
-
-