-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.models.CustomObject
public final class Message implements CustomObject
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Message(String id, String cid, String text, String html, String parentId, String command, List<Attachment> attachments, List<String> mentionedUsersIds, List<User> mentionedUsers, Integer replyCount, Map<String, Integer> reactionCounts, Map<String, Integer> reactionScores, SyncStatus syncStatus, SyncStatus attachmentsSyncStatus, String type, List<Reaction> latestReactions, List<Reaction> ownReactions, Date createdAt, Date updatedAt, Date deletedAt, Date updatedLocallyAt, Date createdLocallyAt, User user, Map<String, Object> extraData, Boolean silent, Boolean shadowed, Map<String, String> i18n, Boolean showInChannel, ChannelInfo channelInfo, Message replyTo, String replyMessageId, Boolean pinned, Date pinnedAt, Date pinExpires, User pinnedBy, List<User> threadParticipants)
-
Method Summary
Modifier and Type Method Description final StringgetId()final UnitsetId(String id)final StringgetCid()final UnitsetCid(String cid)final StringgetText()final UnitsetText(String text)final StringgetHtml()final StringgetParentId()final UnitsetParentId(@SerializedName(value = parent_id) String parentId)final StringgetCommand()final UnitsetCommand(String command)final List<Attachment>getAttachments()final UnitsetAttachments(List<Attachment> attachments)final List<String>getMentionedUsersIds()final UnitsetMentionedUsersIds(@SerializedName(value = mentioned_users) List<String> mentionedUsersIds)final List<User>getMentionedUsers()final UnitsetMentionedUsers(@SerializedName(value = mentioned_users) List<User> mentionedUsers)final IntegergetReplyCount()final UnitsetReplyCount(@SerializedName(value = reply_count) Integer replyCount)final Map<String, Integer>getReactionCounts()final UnitsetReactionCounts(@SerializedName(value = reaction_counts) Map<String, Integer> reactionCounts)final Map<String, Integer>getReactionScores()final UnitsetReactionScores(@SerializedName(value = reaction_scores) Map<String, Integer> reactionScores)final SyncStatusgetSyncStatus()if the message has been synced to the servers final UnitsetSyncStatus(SyncStatus syncStatus)if the message has been synced to the servers final SyncStatusgetAttachmentsSyncStatus()if all the message's attachments has been uploaded to the servers final UnitsetAttachmentsSyncStatus(SyncStatus attachmentsSyncStatus)if all the message's attachments has been uploaded to the servers final StringgetType()final UnitsetType(String type)final List<Reaction>getLatestReactions()final UnitsetLatestReactions(@SerializedName(value = latest_reactions) List<Reaction> latestReactions)final List<Reaction>getOwnReactions()final UnitsetOwnReactions(@SerializedName(value = own_reactions) List<Reaction> ownReactions)final DategetCreatedAt()final UnitsetCreatedAt(@SerializedName(value = created_at) Date createdAt)final DategetUpdatedAt()final UnitsetUpdatedAt(@SerializedName(value = updated_at) Date updatedAt)final DategetDeletedAt()final UnitsetDeletedAt(@SerializedName(value = deleted_at) Date deletedAt)final DategetUpdatedLocallyAt()final UnitsetUpdatedLocallyAt(Date updatedLocallyAt)final DategetCreatedLocallyAt()final UnitsetCreatedLocallyAt(Date createdLocallyAt)final UsergetUser()final UnitsetUser(User user)Map<String, Object>getExtraData()UnitsetExtraData(Map<String, Object> extraData)final BooleangetSilent()final UnitsetSilent(Boolean silent)final BooleangetShadowed()final UnitsetShadowed(Boolean shadowed)final Map<String, String>getI18n()final BooleangetShowInChannel()final UnitsetShowInChannel(@SerializedName(value = show_in_channel) Boolean showInChannel)final ChannelInfogetChannelInfo()final UnitsetChannelInfo(@SerializedName(value = channel) ChannelInfo channelInfo)final MessagegetReplyTo()final UnitsetReplyTo(@SerializedName(value = quoted_message) Message replyTo)final StringgetReplyMessageId()final UnitsetReplyMessageId(@SerializedName(value = quoted_message_id) String replyMessageId)final BooleangetPinned()final UnitsetPinned(Boolean pinned)final DategetPinnedAt()final UnitsetPinnedAt(@SerializedName(value = pinned_at) Date pinnedAt)final DategetPinExpires()final UnitsetPinExpires(@SerializedName(value = pin_expires) Date pinExpires)final UsergetPinnedBy()final UnitsetPinnedBy(@SerializedName(value = pinned_by) User pinnedBy)final List<User>getThreadParticipants()final UnitsetThreadParticipants(@SerializedName(value = thread_participants) List<User> threadParticipants)-
-
Constructor Detail
-
Message
Message(String id, String cid, String text, String html, String parentId, String command, List<Attachment> attachments, List<String> mentionedUsersIds, List<User> mentionedUsers, Integer replyCount, Map<String, Integer> reactionCounts, Map<String, Integer> reactionScores, SyncStatus syncStatus, SyncStatus attachmentsSyncStatus, String type, List<Reaction> latestReactions, List<Reaction> ownReactions, Date createdAt, Date updatedAt, Date deletedAt, Date updatedLocallyAt, Date createdLocallyAt, User user, Map<String, Object> extraData, Boolean silent, Boolean shadowed, Map<String, String> i18n, Boolean showInChannel, ChannelInfo channelInfo, Message replyTo, String replyMessageId, Boolean pinned, Date pinnedAt, Date pinExpires, User pinnedBy, List<User> threadParticipants)
-
-
Method Detail
-
getParentId
final String getParentId()
-
setParentId
final Unit setParentId(@SerializedName(value = parent_id) String parentId)
-
getCommand
final String getCommand()
-
setCommand
final Unit setCommand(String command)
-
getAttachments
final List<Attachment> getAttachments()
-
setAttachments
final Unit setAttachments(List<Attachment> attachments)
-
getMentionedUsersIds
final List<String> getMentionedUsersIds()
-
setMentionedUsersIds
final Unit setMentionedUsersIds(@SerializedName(value = mentioned_users) List<String> mentionedUsersIds)
-
getMentionedUsers
final List<User> getMentionedUsers()
-
setMentionedUsers
final Unit setMentionedUsers(@SerializedName(value = mentioned_users) List<User> mentionedUsers)
-
getReplyCount
final Integer getReplyCount()
-
setReplyCount
final Unit setReplyCount(@SerializedName(value = reply_count) Integer replyCount)
-
getReactionCounts
final Map<String, Integer> getReactionCounts()
-
setReactionCounts
final Unit setReactionCounts(@SerializedName(value = reaction_counts) Map<String, Integer> reactionCounts)
-
getReactionScores
final Map<String, Integer> getReactionScores()
-
setReactionScores
final Unit setReactionScores(@SerializedName(value = reaction_scores) Map<String, Integer> reactionScores)
-
getSyncStatus
final SyncStatus getSyncStatus()
if the message has been synced to the servers
-
setSyncStatus
final Unit setSyncStatus(SyncStatus syncStatus)
if the message has been synced to the servers
-
getAttachmentsSyncStatus
final SyncStatus getAttachmentsSyncStatus()
if all the message's attachments has been uploaded to the servers
-
setAttachmentsSyncStatus
final Unit setAttachmentsSyncStatus(SyncStatus attachmentsSyncStatus)
if all the message's attachments has been uploaded to the servers
-
getLatestReactions
final List<Reaction> getLatestReactions()
-
setLatestReactions
final Unit setLatestReactions(@SerializedName(value = latest_reactions) List<Reaction> latestReactions)
-
getOwnReactions
final List<Reaction> getOwnReactions()
-
setOwnReactions
final Unit setOwnReactions(@SerializedName(value = own_reactions) List<Reaction> ownReactions)
-
getCreatedAt
final Date getCreatedAt()
-
setCreatedAt
final Unit setCreatedAt(@SerializedName(value = created_at) Date createdAt)
-
getUpdatedAt
final Date getUpdatedAt()
-
setUpdatedAt
final Unit setUpdatedAt(@SerializedName(value = updated_at) Date updatedAt)
-
getDeletedAt
final Date getDeletedAt()
-
setDeletedAt
final Unit setDeletedAt(@SerializedName(value = deleted_at) Date deletedAt)
-
getUpdatedLocallyAt
final Date getUpdatedLocallyAt()
-
setUpdatedLocallyAt
final Unit setUpdatedLocallyAt(Date updatedLocallyAt)
-
getCreatedLocallyAt
final Date getCreatedLocallyAt()
-
setCreatedLocallyAt
final Unit setCreatedLocallyAt(Date createdLocallyAt)
-
getExtraData
Map<String, Object> getExtraData()
-
setExtraData
Unit setExtraData(Map<String, Object> extraData)
-
getShadowed
final Boolean getShadowed()
-
setShadowed
final Unit setShadowed(Boolean shadowed)
-
getShowInChannel
final Boolean getShowInChannel()
-
setShowInChannel
final Unit setShowInChannel(@SerializedName(value = show_in_channel) Boolean showInChannel)
-
getChannelInfo
final ChannelInfo getChannelInfo()
-
setChannelInfo
final Unit setChannelInfo(@SerializedName(value = channel) ChannelInfo channelInfo)
-
getReplyTo
final Message getReplyTo()
-
setReplyTo
final Unit setReplyTo(@SerializedName(value = quoted_message) Message replyTo)
-
getReplyMessageId
final String getReplyMessageId()
-
setReplyMessageId
final Unit setReplyMessageId(@SerializedName(value = quoted_message_id) String replyMessageId)
-
getPinnedAt
final Date getPinnedAt()
-
setPinnedAt
final Unit setPinnedAt(@SerializedName(value = pinned_at) Date pinnedAt)
-
getPinExpires
final Date getPinExpires()
-
setPinExpires
final Unit setPinExpires(@SerializedName(value = pin_expires) Date pinExpires)
-
getPinnedBy
final User getPinnedBy()
-
setPinnedBy
final Unit setPinnedBy(@SerializedName(value = pinned_by) User pinnedBy)
-
getThreadParticipants
final List<User> getThreadParticipants()
-
setThreadParticipants
final Unit setThreadParticipants(@SerializedName(value = thread_participants) List<User> threadParticipants)
-
-
-
-