Interface OrdersListView
-
- All Superinterfaces:
EndlessListView
,LceView
,ListView
,MvpLceView
,MvpView
,RefreshableView
- All Known Implementing Classes:
OrdersListFragment
public interface OrdersListView extends EndlessListView
The view class for the list ofOrder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
appendOrdersList(java.util.List<Order> orders, int totalEntries)
Notifies the view to append the list ofOrder
to the existing list.void
showOrdersList(java.util.List<Order> orders, int totalEntries)
Notifies the view to show the list ofOrder
.-
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
-
showOrdersList
void showOrdersList(java.util.List<Order> orders, int totalEntries)
Notifies the view to show the list ofOrder
. This also means that the GET orders API was successful.- Parameters:
orders
- the list ofOrder
totalEntries
- the total number of orders
-
appendOrdersList
void appendOrdersList(java.util.List<Order> orders, int totalEntries)
Notifies the view to append the list ofOrder
to the existing list. This also means that the GET orders API with pagination was successful.- Parameters:
orders
- the list ofOrder
totalEntries
- the total number of orders
-
-