MessageContent

public class MessageContent

Message content base class.

all Message content Type Base class. specific Message class type (e.g. TextMessage, ImageMessage etc.) Inherits This class and Add each unique properties.

Inheritance:

MessageContent
├── TextMessage
├── LocationMessage
└── MediaMessageContent
├── ImageMessage
├── FileMessage
├── VoiceMessage
├── GIFMessage
├── VideoMessage
├── ReferenceMessage
└── CombineMessage

Inheritors

Constructors

Link copied to clipboard

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 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

Link copied to clipboard
public String toString()