Package ai.nexconn.chat.message
Class MessageContent
-
- All Implemented Interfaces:
public class MessageContentBase class for all message content types.
Specific message types (e.g. TextMessage, ImageMessage) extend this class and add their own properties.
Inheritance hierarchy:
MessageContent ├── TextMessage ├── LocationMessage ├── StreamMessage └── MediaMessageContent ├── ImageMessage ├── FileMessage ├── VoiceMessage ├── GIFMessage ├── ShortVideoMessage ├── ReferenceMessage └── CombineMessage
-
-
Field Summary
Fields Modifier and Type Field Description private Stringextraprivate MentionedInfomentionedInfoprivate BooleanisDestructprivate LongdestructTime
-
Constructor Summary
Constructors Constructor Description MessageContent()
-
Method Summary
Modifier and Type Method Description final StringgetExtra()Extra data attached to the message content (sent along with the message, synced remotely). final UnitsetExtra(String extra)Extra data attached to the message content (sent along with the message, synced remotely). final MentionedInfogetMentionedInfo()Mention (@) info. final UnitsetMentionedInfo(MentionedInfo mentionedInfo)Mention (@) info. final BooleanisDestruct()Whether this is a burn-after-reading message. final UnitsetDestruct(Boolean isDestruct)Whether this is a burn-after-reading message. final LonggetDestructTime()Auto-destruct duration in seconds after the message is read. final UnitsetDestructTime(Long destructTime)Auto-destruct duration in seconds after the message is read. StringtoString()-
-
Method Detail
-
getExtra
final String getExtra()
Extra data attached to the message content (sent along with the message, synced remotely).
-
setExtra
final Unit setExtra(String extra)
Extra data attached to the message content (sent along with the message, synced remotely).
-
getMentionedInfo
final MentionedInfo getMentionedInfo()
Mention (@) info.
-
setMentionedInfo
final Unit setMentionedInfo(MentionedInfo mentionedInfo)
Mention (@) info.
-
isDestruct
final Boolean isDestruct()
Whether this is a burn-after-reading message.
-
setDestruct
final Unit setDestruct(Boolean isDestruct)
Whether this is a burn-after-reading message.
-
getDestructTime
final Long getDestructTime()
Auto-destruct duration in seconds after the message is read.
-
setDestructTime
final Unit setDestructTime(Long destructTime)
Auto-destruct duration in seconds after the message is read.
-
toString
String toString()
-
-
-
-