public class UserMessage extends BaseMessage
Modifier and Type | Class and Description |
---|---|
static class |
UserMessage.RequestState
Deprecated.
As of 3.0.120, replaced by
SendingStatus . |
BaseMessage.GetMessageHandler, BaseMessage.GetThreadedMessagesHandler, BaseMessage.SendingStatus
Modifier and Type | Method and Description |
---|---|
UserMessageParams |
getMessageParams()
returns UserMessageParams object that used for sending this message
It's not null when sendingStatus is
SendingStatus#PENDING or SendingStatus#FAILED
If else, it will return null |
java.util.List<Plugin> |
getPlugins()
Returns the plugin lists for this message.
|
java.util.List<java.lang.String> |
getRequestedMentionUserIds()
Returns requested mention user ids.
|
java.lang.String |
getRequestId()
Returns a message request ID.
|
UserMessage.RequestState |
getRequestState()
Deprecated.
As of 3.0.120, replaced by
BaseMessage.getSendingStatus() . |
java.util.Map<java.lang.String,java.lang.String> |
getTranslations()
Returns the translated messages for the language codes in key.
|
java.lang.String |
toString() |
applyParentMessage, applyReactionEvent, applyThreadInfoUpdateEvent, belongsTo, belongsTo, buildFromSerializedData, buildFromSerializedData, clone, equals, getAllMetaArray, getAllMetaArrays, getAppleCriticalAlertOptions, getChannelUrl, getCreatedAt, getCustomType, getData, getErrorCode, getMentionedMessageTemplate, getMentionedUsers, getMentionType, getMessage, getMessage, getMessageId, getMessageSurvivalSeconds, getMetaArray, getMetaArrays, getOgMetaData, getParentMessage, getParentMessageId, getParentMessageText, getReactions, getSender, getSendingStatus, getThreadedMessagesByTimestamp, getThreadInfo, getUpdatedAt, hashCode, isGroupChannel, isOpenChannel, isOperatorMessage, isReplyToChannel, isResendable, isSilent, serialize, setAppleCriticalAlertOptions
public java.lang.String getRequestId()
getRequestId
in class BaseMessage
public java.util.Map<java.lang.String,java.lang.String> getTranslations()
BaseChannel.sendUserMessage(String, String, String, List, BaseChannel.SendUserMessageHandler)
)
will have this map.@Deprecated public UserMessage.RequestState getRequestState()
BaseMessage.getSendingStatus()
.UserMessage.RequestState
).public java.util.List<java.lang.String> getRequestedMentionUserIds()
SendingStatus#PENDING
or SendingStatus#FAILED
or SendingStatus#CANCELED
, empty list will be returned.public UserMessageParams getMessageParams()
SendingStatus#PENDING
or SendingStatus#FAILED
If else, it will return nullSendingStatus#SUCCEEDED
, return null.BaseMessageParams
,
UserMessageParams
,
FileMessageParams
,
getMessageParams()
,
FileMessage.getMessageParams()
public java.util.List<Plugin> getPlugins()
Collections.unmodifiableList(List)
of the plugin list, or null
if there's no plugin.public java.lang.String toString()
toString
in class BaseMessage
Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.