Class ChatMessage
java.lang.Object
io.github.astrapi69.design.pattern.observer.chat.ChatMessage
- All Implemented Interfaces:
Message<MessageRoomModelBean>
,Serializable
The class
ChatMessage
represents a message in a chat application It implements the
Message
interface and is serializable- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Gets the value of the messagesetValue
(MessageRoomModelBean value) Sets the value of the message
-
Constructor Details
-
ChatMessage
public ChatMessage()
-
-
Method Details
-
getValue
Gets the value of the message- Specified by:
getValue
in interfaceMessage<MessageRoomModelBean>
- Returns:
- the value of the message
-
setValue
Sets the value of the message- Specified by:
setValue
in interfaceMessage<MessageRoomModelBean>
- Parameters:
value
- the value to set- Returns:
- the updated message
-