Module it.polimi.ingsw.am13
Class MsgCommandChat
java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.command.MsgCommand
it.polimi.ingsw.am13.network.socket.message.command.MsgCommandChat
- All Implemented Interfaces:
Serializable
Command message to send a chat message
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<PlayerLobby> The receivers of the messageprivate final String
The text of the message -
Constructor Summary
ConstructorsConstructorDescriptionMsgCommandChat
(List<PlayerLobby> receivers, String text) Creates the message by setting the two attributes to the parameters -
Method Summary
-
Field Details
-
text
The text of the message -
receivers
The receivers of the message
-
-
Constructor Details
-
MsgCommandChat
Creates the message by setting the two attributes to the parameters- Parameters:
receivers
- of the messagetext
- of the message
-
-
Method Details
-
getText
- Returns:
- the text of the message
-
getReceivers
- Returns:
- the receivers of the message
-