All Implemented Interfaces:
Serializable

public class MsgResponseChat extends MsgResponse implements Serializable
Response message containing the message that should be sent to its receivers (including its sender and receivers)
See Also:
  • Field Details

    • text

      private final String text
      The content of the message that should be sent
    • sender

      private final PlayerLobby sender
      The sender of the message
    • receivers

      private final List<PlayerLobby> receivers
      The receivers of the message
  • Constructor Details

    • MsgResponseChat

      public MsgResponseChat(PlayerLobby sender, List<PlayerLobby> receivers, String text)
      Builds a new response message with the given sender, receivers and text
      Parameters:
      sender - the sender of the message
      receivers - the receivers of the message
      text - the content of the message
  • Method Details

    • getText

      public String getText()
      Returns:
      the content of the message
    • getSender

      public PlayerLobby getSender()
      Returns:
      the sender of the message
    • getReceivers

      public List<PlayerLobby> getReceivers()
      Returns:
      the receivers of the message