Package com.nadiyar.kiwi
Class MessageDTO
java.lang.Object
com.nadiyar.kiwi.MessageDTO
- Record Components:
content- The chat message body.sentBy- Username of the message sender. Must not be null.sentAt- UTC time when the message was sent, in ISO-8601 format.
Represents a chat message sent between clients in the WebSocket system.
This DTO is serialized to JSON when transmitted over WebSocket.
Example JSON
{
"content": "Hello",
"sentBy": "Anon",
"sentAt": "2025-07-30T10:15:30Z"
}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MessageDTO
public MessageDTO()
-