java.lang.Object
it.polimi.ingsw.am13.client.chat.ChatMessage
A single chat message, as it is stored on the client. The receivers are not stored explicitly in the message
because of the ChatMessage are used in Chat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerLobby
The sender of the messageprivate final String
The text (content) of the message -
Constructor Summary
ConstructorsConstructorDescriptionChatMessage
(PlayerLobby sender, String text) Sets the attributes to the corresponding parameter -
Method Summary
-
Field Details
-
text
The text (content) of the message -
sender
The sender of the message
-
-
Constructor Details
-
ChatMessage
Sets the attributes to the corresponding parameter- Parameters:
sender
- of the messagetext
- of the message
-
-
Method Details
-
getText
- Returns:
- the text of the message
-
getSender
- Returns:
- the sender of the message
-