Package ai.nexconn.chat.message
Class ReferenceMessage
-
- All Implemented Interfaces:
public final class ReferenceMessage extends MediaMessageContent
Reference message.
A message that quotes/references another message. Supports referencing text, image, file, and other message types. This message is stored and counted toward unread count.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringcontentprivate StringreferMsgSenderIdprivate StringreferMsgTypeprivate MessageContentreferMsgprivate StringreferMsgIdprivate final ReferenceMessageStatusreferMsgStatusprivate StringlocalPathprivate StringremoteUrlprivate Stringnameprivate Stringextraprivate MentionedInfomentionedInfoprivate BooleanisDestructprivate LongdestructTime
-
Constructor Summary
Constructors Constructor Description ReferenceMessage()
-
Method Summary
Modifier and Type Method Description final StringgetContent()Text content of this reference message. final UnitsetContent(String content)Text content of this reference message. final StringgetReferMsgSenderId()Sender ID of the referenced message. final UnitsetReferMsgSenderId(String referMsgSenderId)Sender ID of the referenced message. final StringgetReferMsgType()Message type identifier of the referenced message. final UnitsetReferMsgType(String referMsgType)Message type identifier of the referenced message. final MessageContentgetReferMsg()Content body of the referenced message. final UnitsetReferMsg(MessageContent referMsg)Content body of the referenced message. final StringgetReferMsgId()Unique ID of the referenced message. final UnitsetReferMsgId(String referMsgId)Unique ID of the referenced message. final ReferenceMessageStatusgetReferMsgStatus()Status of the referenced message (e.g. StringtoString()-
Methods inherited from class ai.nexconn.chat.message.MediaMessageContent
getLocalPath, getName, getRemoteUrl, setLocalPath, setName, setRemoteUrl -
Methods inherited from class ai.nexconn.chat.message.MessageContent
getDestructTime, getExtra, getMentionedInfo, isDestruct, setDestruct, setDestructTime, setExtra, setMentionedInfo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getContent
final String getContent()
Text content of this reference message.
-
setContent
final Unit setContent(String content)
Text content of this reference message.
-
getReferMsgSenderId
final String getReferMsgSenderId()
Sender ID of the referenced message.
-
setReferMsgSenderId
final Unit setReferMsgSenderId(String referMsgSenderId)
Sender ID of the referenced message.
-
getReferMsgType
final String getReferMsgType()
Message type identifier of the referenced message.
-
setReferMsgType
final Unit setReferMsgType(String referMsgType)
Message type identifier of the referenced message.
-
getReferMsg
final MessageContent getReferMsg()
Content body of the referenced message.
-
setReferMsg
final Unit setReferMsg(MessageContent referMsg)
Content body of the referenced message.
-
getReferMsgId
final String getReferMsgId()
Unique ID of the referenced message.
-
setReferMsgId
final Unit setReferMsgId(String referMsgId)
Unique ID of the referenced message.
-
getReferMsgStatus
final ReferenceMessageStatus getReferMsgStatus()
Status of the referenced message (e.g. modified, recalled, deleted).
-
toString
String toString()
-
-
-
-