Interface ReceiptsView
-
- 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:
ReceiptsFragment
public interface ReceiptsView extends com.cheetahdigital.uikit.widget.list.EndlessListViewExtendsEndlessListViewfor the Receipts List This interface contains methods that are called by the presenter when an API call is done
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidshowReceipts(java.util.List<Receipt> receipts, int totalEntries)This notifies the view when the call to the Receipt API is successfulvoidupdateReceipts(java.util.List<Receipt> receipts, int totalEntries)This notifies the view when the call to the Receipt API is successful but compared to theshowReceipts(List, int)this contains receipts for a certain page-
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
-
showReceipts
void showReceipts(java.util.List<Receipt> receipts, int totalEntries)
This notifies the view when the call to the Receipt API is successful- Parameters:
receipts- list of receipt objectstotalEntries- total number of entries regardless of pagination
-
updateReceipts
void updateReceipts(java.util.List<Receipt> receipts, int totalEntries)
This notifies the view when the call to the Receipt API is successful but compared to theshowReceipts(List, int)this contains receipts for a certain page- Parameters:
receipts- list of receiptstotalEntries- total entries regardless of pagination
-
-