-
public class UserMessage extends BaseMessage
Object representing a user message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
UserMessage.RequestState
Represents message request state.
-
Method Summary
Modifier and Type Method Description List<Plugin>
getPlugins()
Returns the plugin lists for this message. Poll
getPoll()
The poll that belongs to this message object. void
setPoll(@Nullable() Poll poll)
String
getRequestId()
Returns a message request ID. Map<String, String>
getTranslations()
Returns the translated messages for the language codes in key. UserMessage.RequestState
getRequestState()
Returns message request state. List<String>
getRequestedMentionUserIds()
Returns requested mention user ids. UserMessageParams
getMessageParams()
returns UserMessageParams object that used for sending this messageIt's not null when sendingStatus is PENDING or FAILED If else, it will return null boolean
applyPollUpdateEvent(@NonNull() PollUpdateEvent event)
Applies poll update event to this user message's poll. boolean
applyPollVoteEvent(@NonNull() PollVoteEvent event)
Applies poll vote event to this user message's poll. String
toString()
-
Methods inherited from class com.sendbird.android.BaseMessage
applyParentMessage, applyReactionEvent, applyThreadInfoUpdateEvent, belongsTo, belongsTo, buildFromSerializedData, buildFromSerializedData, clone, equals, getAllMetaArray, getAllMetaArrays, getAppleCriticalAlertOptions, getChannelUrl, getCreatedAt, getCustomType, getData, getErrorCode, getMentionType, getMentionedMessageTemplate, getMentionedUsers, getMessage, getMessage, getMessageId, getMessageSurvivalSeconds, getMetaArray, getMetaArrays, getOgMetaData, getParentMessage, getParentMessageId, getParentMessageText, getReactions, getSender, getSendingStatus, getThreadInfo, getThreadedMessagesByTimestamp, getUpdatedAt, hashCode, isGroupChannel, isOpenChannel, isOperatorMessage, isReplyToChannel, isResendable, isSilent, serialize, setAppleCriticalAlertOptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPlugins
List<Plugin> getPlugins()
Returns the plugin lists for this message.
-
getRequestId
String getRequestId()
Returns a message request ID.
-
getTranslations
Map<String, String> getTranslations()
Returns the translated messages for the language codes in key.The messages that have been sent with translation option (refer to sendUserMessage)will have this map.
-
getRequestState
@Deprecated() UserMessage.RequestState getRequestState()
Returns message request state.
-
getRequestedMentionUserIds
List<String> getRequestedMentionUserIds()
Returns requested mention user ids.If sending status is not PENDING or FAILED or CANCELED, empty list will be returned.
-
getMessageParams
@Nullable() UserMessageParams getMessageParams()
returns UserMessageParams object that used for sending this messageIt's not null when sendingStatus is PENDING or FAILED If else, it will return null
-
applyPollUpdateEvent
boolean applyPollUpdateEvent(@NonNull() PollUpdateEvent event)
Applies poll update event to this user message's poll.
- Parameters:
event
- event received from onPollUpdated
-
applyPollVoteEvent
boolean applyPollVoteEvent(@NonNull() PollVoteEvent event)
Applies poll vote event to this user message's poll.
- Parameters:
event
- event received from onPollVoted
-
-
-
-