All Implemented Interfaces:
Serializable

public class GameInit extends Response
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • errorMessage

      private final String errorMessage
  • Constructor Details

    • GameInit

      private GameInit(StatusCode statusCode, String errorMessage)
      Construct the response
      Parameters:
      statusCode - the status code of the response
      errorMessage - additional feedback about the response
  • Method Details

    • fail

      public static GameInit fail(String errorMessage)
      Returns a failed status code response
      Parameters:
      errorMessage - additional feedback about failure
      Returns:
      a failed status code response
    • success

      public static GameInit success()
      Returns a successful status code response
      Returns:
      a successful status code response
    • getErrorMessage

      public String getErrorMessage()
      Get information about the response
      Returns:
      additional feedback about the response