Interface MessagesView

    • Method Detail

      • showMessagesList

        void showMessagesList​(java.util.List<Message> messages,
                              int totalEntries)
        This notifies the view when the API for getting the messages returns a successful response
        Parameters:
        messages - list of Message
        totalEntries - total number of entries
      • appendMessagesList

        void appendMessagesList​(java.util.List<Message> messages,
                                int totalEntries)
        This notifies the view when the API for getting the messages returns a successful response. This contains a list of message for a certain page
        Parameters:
        messages - list of Message
        totalEntries - total number of entries
      • removeItemOnAdapter

        void removeItemOnAdapter​(int messageId)
        This notifies the view when the API for dismissing a message succeeds
        Parameters:
        messageId - id of the Message
      • showErrorDismissDialog

        void showErrorDismissDialog()
        This notifies the view when the API for dismissing a message fails
      • setLoading

        void setLoading​(boolean state)
        Set loading state of the view
        Parameters:
        state - loading state. True to show loading, else false
      • showDialogMissingOffer

        void showDialogMissingOffer()
        This notifies the view on error related to missing offer
      • startOfferDetails

        void startOfferDetails​(int id)
        This notifies the view to start the Offer Details Activity
        Parameters:
        id - id of the Offer
      • startOfferResponseDetails

        void startOfferResponseDetails​(int id)
        This notifies the view to start the Offer Response Details Activity
        Parameters:
        id - id of the Offer Response
      • startRewardsDetails

        void startRewardsDetails​(int id)
        This notifies the view to start the Reward Details Activity
        Parameters:
        id - id of the Reward
      • startOfferUrl

        void startOfferUrl​(java.lang.String url)
        This notifies the view to start the Offer URL Details Activity
        Parameters:
        url - url to use when navigating via webview
      • startChallengeDetails

        void startChallengeDetails​(int id)
        This notifies the view to start the Challenge Details Activity
        Parameters:
        id - id of the Challenge
      • startNewsfeedDetails

        void startNewsfeedDetails​(int id)
        This notifies the view to start the Newsfeed Details Activity
        Parameters:
        id - id of the Newsfeed
      • startMemberDetails

        void startMemberDetails​(int id)
        This notifies the view to start the Member Details Activity
        Parameters:
        id - id of the Member
      • startEventsDetails

        void startEventsDetails​(int id)
        This notifies the view to start the Event Details Activity
        Parameters:
        id - id of the Event
      • showEmptyAttachmentError

        void showEmptyAttachmentError()
        This notifies the view to show an error message for trying to launch an attachment