Interface GiftcardsPagerView

  • All Superinterfaces:
    com.cheetahdigital.uikit.architecture.lce.LceView, com.cheetahdigital.uikit.architecture.lce.MvpLceView, com.cheetahdigital.uikit.architecture.mvp.MvpView, com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
    All Known Implementing Classes:
    GiftcardsPagerFragment

    public interface GiftcardsPagerView
    extends com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
    View to be implemented for GiftcardsPagerFragment
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dismissAddGiftcardDialog()
      This notifies the view to dismiss the AddGiftcardDialogFragment
      void refreshDataAndUi()
      Gets new data from the server and refreshes the layout
      void showAddGiftcardDialog()
      This notifies the view to show AddGiftcardDialogFragment
      void showErrorDialog​(java.lang.String error)
      This notifies the view to show the dialog with error message
      void showGiftcards​(java.util.List<Giftcard> giftcards, java.util.Date responseDate)
      This notifies the view to show the list of Giftcard
      void showLinkSuccessMessage()
      This notifies the view to show a message informing the user that adding a gift card to the member's account was successful.
      void showPurchaseSuccessResponse​(PurchaseResponse response)
      This notifies the view to show a message informing the user that purchasing a digital gift card was successful.
      void showReloadSuccessResponse​(GiftcardReload response)
      This notifies the view to show a message informing the user that reloading a gift card was successful.
      • 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

      • showGiftcards

        void showGiftcards​(java.util.List<Giftcard> giftcards,
                           java.util.Date responseDate)
        This notifies the view to show the list of Giftcard
        Parameters:
        giftcards - list of Giftcard
        responseDate - date the response is received
      • showErrorDialog

        void showErrorDialog​(java.lang.String error)
        This notifies the view to show the dialog with error message
        Parameters:
        error - error message
      • showReloadSuccessResponse

        void showReloadSuccessResponse​(GiftcardReload response)
        This notifies the view to show a message informing the user that reloading a gift card was successful.
        Parameters:
        response - response in GiftcardReload format
      • showLinkSuccessMessage

        void showLinkSuccessMessage()
        This notifies the view to show a message informing the user that adding a gift card to the member's account was successful.
      • showPurchaseSuccessResponse

        void showPurchaseSuccessResponse​(PurchaseResponse response)
        This notifies the view to show a message informing the user that purchasing a digital gift card was successful.
        Parameters:
        response - in PurchaseResponse format
      • refreshDataAndUi

        void refreshDataAndUi()
        Gets new data from the server and refreshes the layout