Interface GameView

    • Method Detail

      • setGameResult

        void setGameResult​(Prize prize)
        Notifies the view when the challenge respond is successful
        Parameters:
        prize - Prize model
      • showGameWonMessage

        void showGameWonMessage​(Prize prize,
                                com.google.gson.JsonObject secondaryPrize,
                                java.lang.String message)
        Notifies the view to inform the user that he won the game
        Parameters:
        prize - reward for winning the game
        secondaryPrize - additional prize
        message - response message
      • showGameLostMessage

        void showGameLostMessage​(com.google.gson.JsonObject secondaryPrize,
                                 java.lang.String message)
        Notifies the view to inform the user that he lost the game
        Parameters:
        secondaryPrize - consolation prize
        message - response message
      • setGameError

        void setGameError​(java.lang.String error)
        Notifies the view that the game failed to initialize
        Parameters:
        error - error message