Class GameInit
java.lang.Object
it.polimi.ingsw.Server.Messages.Message
it.polimi.ingsw.Server.Messages.ServerResponses.Response
it.polimi.ingsw.Server.Messages.ServerResponses.GameInit
- All Implemented Interfaces:
Serializable
A
Response
to a StartGameRequest
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
GameInit
(StatusCode statusCode, String errorMessage) Construct the response -
Method Summary
Methods inherited from class it.polimi.ingsw.Server.Messages.ServerResponses.Response
getStatusCode
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
errorMessage
-
-
Constructor Details
-
GameInit
Construct the response- Parameters:
statusCode
- the status code of the responseerrorMessage
- additional feedback about the response
-
-
Method Details
-
fail
Returns a failed status code response- Parameters:
errorMessage
- additional feedback about failure- Returns:
- a failed status code response
-
success
Returns a successful status code response- Returns:
- a successful status code response
-
getErrorMessage
Get information about the response- Returns:
- additional feedback about the response
-