Class EventResponseListPresenter<T extends EventResponseListView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.uikit.architecture.mvp.Presenter<V>
-
- com.cheetahdigital.uikit.architecture.lce.LcePresenter<V>
-
- com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter<V>
-
- com.cheetahdigital.uikit.widget.list.ListPresenter<V>
-
- com.cheetahdigital.uikit.widget.list.EndlessListPresenter<T>
-
- com.cheetahdigital.event.ui.responses.list.EventResponseListPresenter<T>
-
- Type Parameters:
T
- theEventResponseListView
class
- All Implemented Interfaces:
com.cheetahdigital.uikit.architecture.mvp.MvpPresenter<T>
public class EventResponseListPresenter<T extends EventResponseListView> extends com.cheetahdigital.uikit.widget.list.EndlessListPresenter<T>
TheEndlessListPresenter
class forEventResponseListFragment
-
-
Constructor Summary
Constructors Constructor Description EventResponseListPresenter()
Constructor forEventResponseListPresenter
EventResponseListPresenter(EventsParams eventResponseParams)
Constructor forEventResponseListPresenter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponses>,EventResponses>
getEventResponsesListener()
Create a listener forEventsAPI
protected EventsAPI
getEventsAPI()
Get current instance ofEventsAPI
void
loadData()
Load initial view data.void
loadMore(int currentPage)
void
onLoadMoreFailed(java.lang.String error)
End of load more with failed requestvoid
onLoadMoreSuccess(com.cheetahdigital.corekit.models.data.BaseData data)
End of load more with success requestvoid
onRefreshSuccess(com.cheetahdigital.corekit.models.data.BaseData data)
End of refresh with success request.void
refreshData()
Start the refresh view data.-
Methods inherited from class com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter
isRefreshing, onRefreshFailed
-
Methods inherited from class com.cheetahdigital.uikit.architecture.lce.LcePresenter
onLoadFailed, onLoadSuccess
-
-
-
-
Constructor Detail
-
EventResponseListPresenter
public EventResponseListPresenter()
Constructor forEventResponseListPresenter
-
EventResponseListPresenter
public EventResponseListPresenter(EventsParams eventResponseParams)
Constructor forEventResponseListPresenter
- Parameters:
eventResponseParams
- instance ofEventsParams
used forEventsAPI
-
-
Method Detail
-
getEventResponsesListener
protected com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<EventResponses>,EventResponses> getEventResponsesListener()
Create a listener forEventsAPI
- Returns:
- listener to handle
EventsAPI
requests
-
getEventsAPI
protected EventsAPI getEventsAPI()
Get current instance ofEventsAPI
- Returns:
EventsAPI
used on this presenter
-
loadData
public void loadData()
Description copied from class:com.cheetahdigital.uikit.architecture.lce.LcePresenter
Load initial view data.- Specified by:
loadData
in classcom.cheetahdigital.uikit.architecture.lce.LcePresenter<T extends EventResponseListView>
-
loadMore
public void loadMore(int currentPage)
- Overrides:
loadMore
in classcom.cheetahdigital.uikit.widget.list.EndlessListPresenter<T extends EventResponseListView>
-
onLoadMoreSuccess
public void onLoadMoreSuccess(com.cheetahdigital.corekit.models.data.BaseData data)
Description copied from class:com.cheetahdigital.uikit.widget.list.EndlessListPresenter
End of load more with success request- Overrides:
onLoadMoreSuccess
in classcom.cheetahdigital.uikit.widget.list.EndlessListPresenter<T extends EventResponseListView>
- Parameters:
data
- instance ofBaseData
passed
-
onLoadMoreFailed
public void onLoadMoreFailed(java.lang.String error)
Description copied from class:com.cheetahdigital.uikit.widget.list.EndlessListPresenter
End of load more with failed request- Overrides:
onLoadMoreFailed
in classcom.cheetahdigital.uikit.widget.list.EndlessListPresenter<T extends EventResponseListView>
- Parameters:
error
- message used for failed cases
-
refreshData
public void refreshData()
Description copied from class:com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter
Start the refresh view data.- Overrides:
refreshData
in classcom.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter<T extends EventResponseListView>
-
onRefreshSuccess
public void onRefreshSuccess(com.cheetahdigital.corekit.models.data.BaseData data)
Description copied from class:com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter
End of refresh with success request.- Overrides:
onRefreshSuccess
in classcom.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter<T extends EventResponseListView>
- Parameters:
data
- theBaseData
.
-
-