Interface GiftcardsListView
-
- All Superinterfaces:
com.cheetahdigital.uikit.widget.list.EndlessListView
,com.cheetahdigital.uikit.architecture.lce.LceView
,com.cheetahdigital.uikit.widget.list.ListView
,com.cheetahdigital.uikit.architecture.lce.MvpLceView
,com.cheetahdigital.uikit.architecture.mvp.MvpView
,com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
- All Known Implementing Classes:
GiftcardsListFragment
public interface GiftcardsListView extends com.cheetahdigital.uikit.widget.list.EndlessListView
View to be implemented forGiftcardsListFragment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
appendGiftcardsList(java.util.List<Giftcard> giftcards, int totalEntries)
This notifies the view to append a list ofGiftcard
to the existing list fromshowGiftcardsList(List, int)
void
processSuccessfulPurchaseResponse(PurchaseResponse response)
This notifies the view that gift card purchase API has respondedvoid
purchaseFailed(java.lang.String error)
This notifies the view that gift card purchase API has failedvoid
showGiftcardsList(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
-
-
-
-
Method Detail
-
showGiftcardsList
void showGiftcardsList(java.util.List<Giftcard> giftcards, int totalEntries)
This notifies the view to show the list ofGiftcard
- Parameters:
giftcards
- list ofGiftcard
totalEntries
- total number of items
-
appendGiftcardsList
void appendGiftcardsList(java.util.List<Giftcard> giftcards, int totalEntries)
This notifies the view to append a list ofGiftcard
to the existing list fromshowGiftcardsList(List, int)
- Parameters:
giftcards
- list ofGiftcard
for 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
-
-