TextMessage

public final class TextMessage extends MessageContent

Text message.

Inherits MessageContent. This message will store and count toward Unread message count.

Parameters

content

Message text content

Constructors

Link copied to clipboard
public TextMessage TextMessage(String content)

Properties

Link copied to clipboard
private final String content

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

@ mention Info

Functions

Link copied to clipboard
public final String getContent()
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

@ mention Info

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 setMentionedInfo(MentionedInfo mentionedInfo)

@ mention Info