Class Message

java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Accepted, AvailableLobbies, ConnectionMessage, ConnectionUpdate, GameMessage, HelpRequest, HelpResponse, InitialBoardStatus, LobbyUpdate, Ping, Refused, UserActionUpdate

public abstract class Message extends Object implements Serializable
A class representing the most non-specific communication item exchanged between client-side and server-side.
See Also:
  • Constructor Details

    • Message

      public Message(String sender)
  • Method Details

    • getSender

      public String getSender()
      A getter for the entity which is sending {@link this}.
      Returns:
      the identifier of the sender