Interface ReceiptsView

  • All Superinterfaces:
    com.cheetahdigital.uikit.widget.list.EndlessListView, com.cheetahdigital.uikit.architecture.lce.LceView, com.cheetahdigital.uikit.widget.list.ListView, com.cheetahdigital.uikit.architecture.lce.MvpLceView, com.cheetahdigital.uikit.architecture.mvp.MvpView, com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
    All Known Implementing Classes:
    ReceiptsFragment

    public interface ReceiptsView
    extends com.cheetahdigital.uikit.widget.list.EndlessListView
    Extends EndlessListView for the Receipts List This interface contains methods that are called by the presenter when an API call is done
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void showReceipts​(java.util.List<Receipt> receipts, int totalEntries)
      This notifies the view when the call to the Receipt API is successful
      void updateReceipts​(java.util.List<Receipt> receipts, int totalEntries)
      This notifies the view when the call to the Receipt API is successful but compared to the showReceipts(List, int) this contains receipts for a certain page
      • 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

      • showReceipts

        void showReceipts​(java.util.List<Receipt> receipts,
                          int totalEntries)
        This notifies the view when the call to the Receipt API is successful
        Parameters:
        receipts - list of receipt objects
        totalEntries - total number of entries regardless of pagination
      • updateReceipts

        void updateReceipts​(java.util.List<Receipt> receipts,
                            int totalEntries)
        This notifies the view when the call to the Receipt API is successful but compared to the showReceipts(List, int) this contains receipts for a certain page
        Parameters:
        receipts - list of receipts
        totalEntries - total entries regardless of pagination