Interface ChallengeResponseView

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onChallengeRespondSuccess​(Response data)
      Notifies the view when the challenge respond is successful
      void showErrorMessage​(java.lang.String error)
      Notifies the view when the challenge respond failed
      void showLoading​(boolean show)
      Notifies the view to show or hide loading
      void showReward​(java.lang.String primary, com.google.gson.JsonObject secondary, java.lang.String status)
      Notifies the view to show the reward for responding to the challenge
    • Method Detail

      • onChallengeRespondSuccess

        void onChallengeRespondSuccess​(Response data)
        Notifies the view when the challenge respond is successful
        Parameters:
        data - Response model
      • showReward

        void showReward​(java.lang.String primary,
                        com.google.gson.JsonObject secondary,
                        java.lang.String status)
        Notifies the view to show the reward for responding to the challenge
        Parameters:
        primary - reward string of main prize
        secondary - reward string of additional prize
        status - status f ChallengeResponse
      • showErrorMessage

        void showErrorMessage​(java.lang.String error)
        Notifies the view when the challenge respond failed
        Parameters:
        error - message
      • showLoading

        void showLoading​(boolean show)
        Notifies the view to show or hide loading
        Parameters:
        show - true to start loading, false to hide