Message Content
The base class for messages.
Defines methods for converting between message objects and message data.
Properties
Link copied to clipboard
public long destructTime
Specifies the auto-destruct timer.
Link copied to clipboard
public boolean isDestruct
Indicates whether it is a timed self-destruct message
Link copied to clipboard
public MentionedInfo mentionedInfo
Message contains @mention information
Link copied to clipboard
The raw JSON binary content of the message.
Functions
Link copied to clipboard
Retrieves the message moderation configuration
Link copied to clipboard
Converts the self-destruct field, @ mention field, user info field, and extra field of the base class into a JSONObject.
Link copied to clipboard
Retrieves the auto-destroy time.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get @user information
Link copied to clipboard
Retrieves the raw binary data of the message.
Link copied to clipboard
Returns the searchable content within the message body.
Link copied to clipboard
Get user information
Link copied to clipboard
Indicates whether the message is set to auto-destroy after a certain time.
Link copied to clipboard
Parses the self-destruct field, @ mention field, user information field, and extra field from the JSONObject into the message body.
Link copied to clipboard
Link copied to clipboard
Parses the user JSON object
Link copied to clipboard
Link copied to clipboard
Set message moderation configuration
Link copied to clipboard
Sets whether the message is timed-destruct.
Link copied to clipboard
Sets the self-destruct timer.
Link copied to clipboard
Set @ user information
Link copied to clipboard
Sets the raw binary data of the message.
Link copied to clipboard
Set user information
Link copied to clipboard
Writes the data of the base class's self-destruct field, @ mention field, user information field, and extra field into the externally provided Parcel.