Interface ChallengeResponsesListView
-
- All Superinterfaces:
EndlessListView,LceView,ListView,MvpLceView,MvpView,RefreshableView
- All Known Implementing Classes:
ChallengeResponsesListFragment
public interface ChallengeResponsesListView extends EndlessListView
This view must be implemented to notify the Activity or Fragment of the API call returns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendChallengeResponsesList(java.util.List<ChallengeResponse> responses, int totalEntries)Notifies the view when GET challenge responses API with pagination is successfulvoidshowChallengeResponsesList(java.util.List<ChallengeResponse> responses, int totalEntries)Notifies the view when GET challenge responses API is successfulvoidshowErrorMessage(java.lang.String error)Notifies the view when GET challenge responses API failed-
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
-
showChallengeResponsesList
void showChallengeResponsesList(java.util.List<ChallengeResponse> responses, int totalEntries)
Notifies the view when GET challenge responses API is successful- Parameters:
responses- list ofChallengeResponsetotalEntries- number of responses
-
appendChallengeResponsesList
void appendChallengeResponsesList(java.util.List<ChallengeResponse> responses, int totalEntries)
Notifies the view when GET challenge responses API with pagination is successful- Parameters:
responses- list ofChallengeResponsetotalEntries- number of responses
-
showErrorMessage
void showErrorMessage(java.lang.String error)
Notifies the view when GET challenge responses API failed- Parameters:
error- error message
-
-