java.lang.Object
it.polimi.ingsw.Server.Messages.Message
it.polimi.ingsw.Server.Messages.ServerResponses.Response
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FixedStatusResponse, GameInit, LobbyConnected, LobbyServerAccept, PlayerActionFeedback

public abstract class Response extends Message
Any message sent by the WelcomeServer or LobbyServer will inherit this class.
See Also:
  • Field Details

  • Constructor Details

    • Response

      public Response(StatusCode statusCode)
      Construct the response
      Parameters:
      statusCode - the status code of the response
  • Method Details

    • getStatusCode

      public StatusCode getStatusCode()
      Get the status code of the response
      Returns:
      true if the response is positive, false otherwise