public final class ScheduledUserMessage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ScheduledUserMessage.Status
Represents scheduled message status.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAllMetaArray()
Deprecated.
As of 3.0.99, replaced by
getAllMetaArrays() . |
java.util.List<MessageMetaArray> |
getAllMetaArrays()
Returns all
MessageMetaArray s. |
java.lang.String |
getChannelUrl()
Returns the channel URL of this message belongs to.
|
long |
getCreatedAt()
Returns scheduled message creation time.
|
java.lang.String |
getCustomType()
Returns the custom type of the scheduled message.
|
java.lang.String |
getData()
Returns the custom data of the scheduled message.
|
int |
getErrorCode()
Returns error code.
|
java.lang.String |
getErrorMessage()
Returns error message.
|
java.util.List<User> |
getMentionedUsers()
Returns mentioned users.
|
BaseMessageParams.MentionType |
getMentionType()
Returns mention type.
|
java.lang.String |
getMessage()
Returns message text.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getMetaArray(java.util.Collection<java.lang.String> metaArrayKeys)
Deprecated.
As of 3.0.99, replaced by
getMetaArrays(Collection) . |
java.util.List<MessageMetaArray> |
getMetaArrays(java.util.Collection<java.lang.String> metaArrayKeys)
Returns
MessageMetaArray list which is filtered by given metaArrayKeys. |
BaseMessageParams.PushNotificationDeliveryOption |
getPushNotificationDeliveryOption()
Returns push notification delivery option.
|
java.util.Date |
getScheduledDateTime()
Returns scheduled message date time.
|
long |
getScheduledId()
Returns scheduled message ID.
|
java.lang.String |
getScheduledTimezone()
Returns scheduled message timezone.
|
User |
getSender()
Returns sender of message.
|
ScheduledUserMessage.Status |
getStatus()
Returns scheduled message status.
|
java.util.ArrayList<java.lang.String> |
getTranslationTargetLanguages()
Returns translation target languages.
|
long |
getUpdatedAt()
Returns scheduled message updated time.
|
int |
hashCode() |
boolean |
isGroupChannel()
Checks if this message is from
GroupChannel . |
boolean |
isOpenChannel()
Checks if this message is from
OpenChannel . |
java.lang.String |
toString() |
public long getScheduledId()
public java.util.Date getScheduledDateTime()
Date
.public java.lang.String getScheduledTimezone()
TimeZone.getID()
.public ScheduledUserMessage.Status getStatus()
ScheduledUserMessage.Status
.public int getErrorCode()
getStatus()
is ScheduledUserMessage.Status.FAILED
.public java.lang.String getErrorMessage()
getStatus()
is ScheduledUserMessage.Status.FAILED
.public BaseMessageParams.PushNotificationDeliveryOption getPushNotificationDeliveryOption()
public long getCreatedAt()
public long getUpdatedAt()
public BaseMessageParams.MentionType getMentionType()
BaseMessageParams.MentionType
.public java.util.List<User> getMentionedUsers()
public java.lang.String getChannelUrl()
public boolean isOpenChannel()
OpenChannel
.OpenChannel
.public boolean isGroupChannel()
GroupChannel
.GroupChannel
.public java.lang.String getData()
public java.lang.String getCustomType()
@Deprecated public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllMetaArray()
getAllMetaArrays()
.public java.util.List<MessageMetaArray> getAllMetaArrays()
MessageMetaArray
s.MessageMetaArray
@Deprecated public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMetaArray(java.util.Collection<java.lang.String> metaArrayKeys)
getMetaArrays(Collection)
.metaArrayKeys
- Meta array keys.public java.util.List<MessageMetaArray> getMetaArrays(java.util.Collection<java.lang.String> metaArrayKeys)
MessageMetaArray
list which is filtered by given metaArrayKeys.metaArrayKeys
- Meta array Keys.MessageMetaArray
.public java.lang.String getMessage()
public User getSender()
SendBird.Options.useMemberAsMessageSender(boolean)
is set true
,
the sender information such as nickname and profile url is returned as the same with the channel member's. Otherwise,
the sender information will be returned as the value of the message creation time.public java.util.ArrayList<java.lang.String> getTranslationTargetLanguages()
UserMessageParams.setTranslationTargetLanguages(List)
.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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.