ReferenceMessage

public final class ReferenceMessage extends MediaMessageContent

Reference message.

Inherits MediaMessageContent. Supports Reference Text, Image, File etc. Message class type. This message will store and count toward Unread message count.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private String content

Send Text Content

Link copied to clipboard

Was/were Reference Message content body

Link copied to clipboard
private String referMessageUid

Was/were Reference message's UID

Link copied to clipboard
private String referObjectName

Was/were Reference message's Type Name (objectName)

Link copied to clipboard
private String referUserId

Was/were Reference message's Sender ID

Inherited properties

Link copied to clipboard
private Long destructTime

after reading i.e. burn-after-reading destroy When time (Unit: seconds), message Read after passing This When destroy after time

Link copied to clipboard
private String extra

Message content extra data (follow message Send, Sync Remote)

Link copied to clipboard
private Boolean isDestruct

Whether after reading i.e. burn message

Link copied to clipboard
private String localUri

Media Content Local Path

Link copied to clipboard

@ mention Info

Link copied to clipboard
private String name

Media Content File name

Link copied to clipboard
private String remoteUri

Media Content Upload Server after Remote URL

Functions

Link copied to clipboard
public final String getContent()

Send Text Content

Link copied to clipboard

Was/were Reference Message content body

Link copied to clipboard
public final String getReferMessageUid()

Was/were Reference message's UID

Link copied to clipboard
public final String getReferObjectName()

Was/were Reference message's Type Name (objectName)

Link copied to clipboard
public final String getReferUserId()

Was/were Reference message's Sender ID

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

Send Text Content

Link copied to clipboard
public final Unit setReferContent(MessageContent referContent)

Was/were Reference Message content body

Link copied to clipboard
public final Unit setReferMessageUid(String referMessageUid)

Was/were Reference message's UID

Link copied to clipboard
public final Unit setReferObjectName(String referObjectName)

Was/were Reference message's Type Name (objectName)

Link copied to clipboard
public final Unit setReferUserId(String referUserId)

Was/were Reference message's Sender ID

Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public final Long getDestructTime()

after reading i.e. burn-after-reading destroy When time (Unit: seconds), message Read after passing This When destroy after time

Link copied to clipboard
public final String getExtra()

Message content extra data (follow message Send, Sync Remote)

Link copied to clipboard
public final String getLocalUri()

Media Content Local Path

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 getRemoteUri()

Media Content Upload Server after Remote URL

Link copied to clipboard
public final Boolean isDestruct()

Whether after reading i.e. burn message

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

Whether after reading i.e. burn message

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

after reading i.e. burn-after-reading destroy When time (Unit: seconds), message Read after passing This When destroy after time

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

Message content extra data (follow message Send, Sync Remote)

Link copied to clipboard
public final Unit setLocalUri(String localUri)

Media Content Local Path

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 setRemoteUri(String remoteUri)

Media Content Upload Server after Remote URL