Module it.polimi.ingsw.am13
Class MsgResponseChat
java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
it.polimi.ingsw.am13.network.socket.message.response.MsgResponseChat
- All Implemented Interfaces:
Serializable
Response message containing the message that should be sent to its receivers (including its sender and receivers)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<PlayerLobby> The receivers of the messageprivate final PlayerLobby
The sender of the messageprivate final String
The content of the message that should be sent -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponseChat
(PlayerLobby sender, List<PlayerLobby> receivers, String text) Builds a new response message with the given sender, receivers and text -
Method Summary
Methods inherited from class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
getType
-
Field Details
-
text
The content of the message that should be sent -
sender
The sender of the message -
receivers
The receivers of the message
-
-
Constructor Details
-
MsgResponseChat
Builds a new response message with the given sender, receivers and text- Parameters:
sender
- the sender of the messagereceivers
- the receivers of the messagetext
- the content of the message
-
-
Method Details
-
getText
- Returns:
- the content of the message
-
getSender
- Returns:
- the sender of the message
-
getReceivers
- Returns:
- the receivers of the message
-