Interface GiftcardsListView

  • 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:
    GiftcardsListFragment

    public interface GiftcardsListView
    extends com.cheetahdigital.uikit.widget.list.EndlessListView
    View to be implemented for GiftcardsListFragment
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void appendGiftcardsList​(java.util.List<Giftcard> giftcards, int totalEntries)
      This notifies the view to append a list of Giftcard to the existing list from showGiftcardsList(List, int)
      void processSuccessfulPurchaseResponse​(PurchaseResponse response)
      This notifies the view that gift card purchase API has responded
      void purchaseFailed​(java.lang.String error)
      This notifies the view that gift card purchase API has failed
      void showGiftcardsList​(java.util.List<Giftcard> giftcards, int totalEntries)
      This notifies the view to show the list of Giftcard
      • 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

      • showGiftcardsList

        void showGiftcardsList​(java.util.List<Giftcard> giftcards,
                               int totalEntries)
        This notifies the view to show the list of Giftcard
        Parameters:
        giftcards - list of Giftcard
        totalEntries - total number of items
      • appendGiftcardsList

        void appendGiftcardsList​(java.util.List<Giftcard> giftcards,
                                 int totalEntries)
        This notifies the view to append a list of Giftcard to the existing list from showGiftcardsList(List, int)
        Parameters:
        giftcards - list of Giftcard for a certain page
        totalEntries - total number of items
      • processSuccessfulPurchaseResponse

        void processSuccessfulPurchaseResponse​(PurchaseResponse response)
        This notifies the view that gift card purchase API has responded
        Parameters:
        response - purchase response
      • purchaseFailed

        void purchaseFailed​(java.lang.String error)
        This notifies the view that gift card purchase API has failed
        Parameters:
        error - error