Class RedemptionsListPresenter<T extends RedemptionsListView>
- 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.rewards.ui.redemptions.list.RedemptionsListPresenter<T>
-
- Type Parameters:
T
- theMvpView
class
- All Implemented Interfaces:
com.cheetahdigital.uikit.architecture.mvp.MvpPresenter<T>
public class RedemptionsListPresenter<T extends RedemptionsListView> extends com.cheetahdigital.uikit.widget.list.EndlessListPresenter<T>
TheMvpPresenter
class forRedemptionsListFragment
-
-
Constructor Summary
Constructors Constructor Description RedemptionsListPresenter()
Simple constructor forRedemptionsListPresenter
RedemptionsListPresenter(RewardParams parameters)
Constructor that accepts a reward parameter
-
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<Redemptions>,Redemptions>
getRedemptionListener()
Create a listener forRewardsAPI
protected RewardsAPI
getRewardsAPI()
Get current instance ofRewardsAPI
void
loadData()
Load initial view data.void
loadMore(int currentPage)
void
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.widget.list.EndlessListPresenter
isAppending, onLoadMoreFailed
-
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
-
RedemptionsListPresenter
public RedemptionsListPresenter()
Simple constructor forRedemptionsListPresenter
-
RedemptionsListPresenter
public RedemptionsListPresenter(RewardParams parameters)
Constructor that accepts a reward parameter- Parameters:
parameters
-RewardParams
-
-
Method Detail
-
getRedemptionListener
protected com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Redemptions>,Redemptions> getRedemptionListener()
Create a listener forRewardsAPI
- Returns:
- listener to handle
RewardsAPI
requests
-
getRewardsAPI
protected RewardsAPI getRewardsAPI()
Get current instance ofRewardsAPI
- Returns:
RewardsAPI
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 RedemptionsListView>
-
loadMore
public void loadMore(int currentPage)
- Overrides:
loadMore
in classcom.cheetahdigital.uikit.widget.list.EndlessListPresenter<T extends RedemptionsListView>
-
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 RedemptionsListView>
-
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 RedemptionsListView>
- Parameters:
data
- theBaseData
.
-
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 RedemptionsListView>
- Parameters:
data
- instance ofBaseData
passed
-
-