Customizable Message
This class is to provide a customizable BaseMessage class so that a custom message object such as a timeline or bookmark message can be used with other actual BaseMessage objects in a single List<BaseMessage>.
This is only to be used as a read-only object and any other BaseMessage operation is not guaranteed and may throw an SendbirdNotSupportedException or lead to a crash.
Constructors
Properties
All MessageMetaArrays of the message.
The apple critical alert options of the message.
The ChannelType of the channel this message belongs to.
The channel URL of the channel this message belongs to.
The custom type of the message.
The error code of them message if the sendingStatus is SendingStatus.FAILED.
Extra data for this BaseMessage. This is a customer-only field. It is a value used only locally, supports only memory cache, and is not stored in the database. If the message IDs are the same but the message instances are different, the extras values may not be the same. BaseMessage.extras is not shared between instances.
Whether this message is from FeedChannel.
Whether this message is from GroupChannel.
Whether this message is from OpenChannel.
Whether the message was sent from an operator.
Determines whether the current message is a replied message and also a message was replied to the channel.
Whether the message is resendable.
The mentioned message template of the message.
The mentioned user ids of the message.
The mentioned users of the message.
The mention type. Refer to MentionType.
The BaseMessageCreateParams object that used for sending this message For more details, Please refer UserMessage.messageCreateParams, FileMessage.messageCreateParams
MessageForm that allow users to input their information or opinions
My feedback of the message. Not null, if its FeedbackStatus is FeedbackStatus.SUBMITTED. Null, if its FeedbackStatus is FeedbackStatus.NOT_APPLICABLE or FeedbackStatus.NO_FEEDBACK.
My feedback status of the message.
This value is used internally for analyzing Sendbird Notification service data.
The message status of the notification message. This message status will be changed only if the channel is a FeedChannel.
Notification priority This value can be set when the notification message is sent and default value is NORMAL
The OGMetaData of the message. Might be null if
The parent message of this message. Only NonNull
if this message is a reply message. It does not contain all properties of the parent message.
Only contains:
The parent message's ID if this is a reply message.
The scheduled info of the message if this is a scheduled message
The Sender of the message. If SendbirdChat.Options.useMemberInfoInMessage is set true
and this message belongs to a GroupChannel (not a super group channel), the sender information, such as nickname and profile url, is returned as the same with the GroupChannel.members. Otherwise, the sender information will be returned as the value of the message creation time.
The sending status of the message.
The suggested replies of the message.
The thread info of the message.
Functions
When parent message is updated, you can update the child message's parent message through this method If you use MessageCollection, messages in the collection are automatically updated, so don't need to call it
When you get updated polls from GroupChannel.getPollChangeLogsSinceToken or GroupChannel.getPollChangeLogsSinceTimestamp, you can update the user message's poll through this function If you use MessageCollection, messages in the collection are automatically updated, so don't need to call it
Applies ReactionEvent
to message.
Applies ThreadInfoUpdateEvent to a message.
Deletes the feedback for the message. The feedback can be deleted only when the FeedbackStatus is FeedbackStatus.SUBMITTED.
Returns MessageMetaArray list which is filtered by given metaArrayKeys.
Retrieves the threaded replies of the current message depending on the timestamp. If the current message doesn’t have replies, the result is an empty list. The result is passed to handler
as list
.
Serializes the UserMessage
, FileMessage
or AdminMessage
instance. This byte array can be stored in the database in your application. The instance can be restored by buildFromSerializedData.
Submits the feedback for the message. The feedback can be submitted only when the FeedbackStatus is FeedbackStatus.NO_FEEDBACK.
Submits the form message received from the bot.
Submits the form message received from the bot. The answers of the message form should be set to the MessageFormItem.draftValues before calling this method.
Updates the feedback for the message. The feedback can be updated only when the FeedbackStatus is FeedbackStatus.SUBMITTED.