Class RedemptionsListPresenter<T extends RedemptionsListView>

  • Type Parameters:
    T - the MvpView 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>
    The MvpPresenter class for RedemptionsListFragment
    • 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 for RewardsAPI
      protected RewardsAPI getRewardsAPI()
      Get current instance of RewardsAPI
      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 request
      void 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
      • Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter

        attachView, detachView, getView
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 for RewardsAPI
        Returns:
        listener to handle RewardsAPI requests
      • loadData

        public void loadData()
        Description copied from class: com.cheetahdigital.uikit.architecture.lce.LcePresenter
        Load initial view data.
        Specified by:
        loadData in class com.cheetahdigital.uikit.architecture.lce.LcePresenter<T extends RedemptionsListView>
      • loadMore

        public void loadMore​(int currentPage)
        Overrides:
        loadMore in class com.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 class com.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 class com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter<T extends RedemptionsListView>
        Parameters:
        data - the BaseData.
      • 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 class com.cheetahdigital.uikit.widget.list.EndlessListPresenter<T extends RedemptionsListView>
        Parameters:
        data - instance of BaseData passed