ReferenceMessage

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.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private String content

Text content of this reference message.

Link copied to clipboard

Content body of the referenced message.

Link copied to clipboard
private String referMsgId

Unique ID of the referenced message.

Link copied to clipboard
private String referMsgSenderId

Sender ID of the referenced message.

Link copied to clipboard

Status of the referenced message (e.g. modified, recalled, deleted).

Link copied to clipboard
private String referMsgType

Message type identifier of the referenced message.

Inherited properties

Link copied to clipboard
private Long destructTime

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
private String extra

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
private Boolean isDestruct

Whether this is a burn-after-reading message.

Link copied to clipboard
private String localPath

Local file path of the media content.

Link copied to clipboard

Mention (@) info.

Link copied to clipboard
private String name

Media content file name.

Link copied to clipboard
private String remoteUrl

Remote URL of the media content after upload.

Functions

Link copied to clipboard
public final String getContent()

Text content of this reference message.

Link copied to clipboard
public final MessageContent getReferMsg()

Content body of the referenced message.

Link copied to clipboard
public final String getReferMsgId()

Unique ID of the referenced message.

Link copied to clipboard
public final String getReferMsgSenderId()

Sender ID of the referenced message.

Link copied to clipboard

Status of the referenced message (e.g. modified, recalled, deleted).

Link copied to clipboard
public final String getReferMsgType()

Message type identifier of the referenced message.

Link copied to clipboard
public final Unit setContent(String content)

Text content of this reference message.

Link copied to clipboard
public final Unit setReferMsg(MessageContent referMsg)

Content body of the referenced message.

Link copied to clipboard
public final Unit setReferMsgId(String referMsgId)

Unique ID of the referenced message.

Link copied to clipboard
public final Unit setReferMsgSenderId(String referMsgSenderId)

Sender ID of the referenced message.

Link copied to clipboard
public final Unit setReferMsgType(String referMsgType)

Message type identifier of the referenced message.

Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public final Long getDestructTime()

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
public final String getExtra()

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
public final String getLocalPath()

Local file path of the media content.

Link copied to clipboard

Mention (@) info.

Link copied to clipboard
public final String getName()

Media content file name.

Link copied to clipboard
public final String getRemoteUrl()

Remote URL of the media content after upload.

Link copied to clipboard
public final Boolean isDestruct()

Whether this is a burn-after-reading message.

Link copied to clipboard
public final Unit setDestruct(Boolean isDestruct)

Whether this is a burn-after-reading message.

Link copied to clipboard
public final Unit setDestructTime(Long destructTime)

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
public final Unit setExtra(String extra)

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
public final Unit setLocalPath(String localPath)

Local file path of the media content.

Link copied to clipboard
public final Unit setMentionedInfo(MentionedInfo mentionedInfo)

Mention (@) info.

Link copied to clipboard
public final Unit setName(String name)

Media content file name.

Link copied to clipboard
public final Unit setRemoteUrl(String remoteUrl)

Remote URL of the media content after upload.