Interface GiftcardsListView

    • 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