java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MsgResponseChat, MsgResponseChosenPersonalObjective, MsgResponseEndGame, MsgResponseError, MsgResponseFinalPhase, MsgResponseGetRooms, MsgResponseInGame, MsgResponseNextTurn, MsgResponsePickedCard, MsgResponsePing, MsgResponsePlayedCard, MsgResponsePlayedStarter, MsgResponsePlayerDisconnected, MsgResponsePlayerJoinedRoom, MsgResponsePlayerLeftRoom, MsgResponsePlayerReconnected, MsgResponsePointsCalculated, MsgResponseStartGame, MsgResponseUpdateGameState, MsgResponseWinner

public abstract class MsgResponse extends Message
Abstract class for a response message, which is sent to the client by the server
See Also:
  • Field Details

    • type

      private final String type
      The type of the response, which is useful to associate it to the corresponding request
  • Constructor Details

    • MsgResponse

      public MsgResponse(String type)
      Builds a new response message with the given type
      Parameters:
      type - the type of the response
  • Method Details

    • getType

      public String getType()
      Returns:
      the type of the response