-
public abstract class ChatMessageContains Chat message information.
-
-
Field Summary
Fields Modifier and Type Field Description private longtimestampprivate Stringidprivate Stringcontentprivate Chat.Participantsenderprivate MessageAttachmentattachment
-
Constructor Summary
Constructors Constructor Description ChatMessage(long timestamp, String id, String content, Chat.Participant sender, MessageAttachment attachment)
-
Method Summary
Modifier and Type Method Description longgetTimestamp()Timestamp of when message was received by server in milliseconds StringgetId()Identifier of the message. StringgetContent()Content of the message Chat.ParticipantgetSender()Sender type, see Chat.Participant for possible options MessageAttachmentgetAttachment()Message attachment. -
-
Constructor Detail
-
ChatMessage
ChatMessage(long timestamp, String id, String content, Chat.Participant sender, MessageAttachment attachment)
-
-
Method Detail
-
getTimestamp
long getTimestamp()
Timestamp of when message was received by server in milliseconds
-
getId
String getId()
Identifier of the message. This identifier can be used to track a single message's statusupdates through time and to avoid re-rendering the entire list of messages when the status of only a single message has changed.
-
getContent
String getContent()
Content of the message
-
getSender
Chat.Participant getSender()
Sender type, see Chat.Participant for possible options
-
getAttachment
MessageAttachment getAttachment()
Message attachment. If no attachment is present, then it is `null`. See MessageAttachment for more.
-
-
-
-