-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.models.CustomObject
public final class Message implements CustomObject
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate Stringcidprivate Stringtextprivate final Stringhtmlprivate StringparentIdprivate Stringcommandprivate List<Attachment>attachmentsprivate List<String>mentionedUsersIdsprivate List<User>mentionedUsersprivate IntegerreplyCountprivate Map<String, Integer>reactionCountsprivate Map<String, Integer>reactionScoresprivate SyncStatussyncStatusprivate Stringtypeprivate List<Reaction>latestReactionsprivate List<Reaction>ownReactionsprivate DatecreatedAtprivate DateupdatedAtprivate DatedeletedAtprivate DateupdatedLocallyAtprivate DatecreatedLocallyAtprivate Useruserprivate Map<String, Object>extraDataprivate Booleansilentprivate Booleanshadowedprivate final Map<String, String>i18nprivate BooleanshowInChannelprivate ChannelInfochannelInfo
-
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, 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)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final Stringcomponent4()final Stringcomponent5()final Stringcomponent6()final List<Attachment>component7()final List<String>component8()final List<User>component9()final Integercomponent10()final Map<String, Integer>component11()final Map<String, Integer>component12()final SyncStatuscomponent13()final Stringcomponent14()final List<Reaction>component15()final List<Reaction>component16()final Datecomponent17()final Datecomponent18()final Datecomponent19()final Datecomponent20()final Datecomponent21()final Usercomponent22()final Map<String, Object>component23()final Booleancomponent24()final Booleancomponent25()final Map<String, String>component26()final Booleancomponent27()final ChannelInfocomponent28()final Messagecopy(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, 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)final StringgetId()final StringgetCid()final StringgetText()final StringgetHtml()final StringgetParentId()final StringgetCommand()final List<Attachment>getAttachments()final List<String>getMentionedUsersIds()final List<User>getMentionedUsers()final IntegergetReplyCount()final Map<String, Integer>getReactionCounts()final Map<String, Integer>getReactionScores()final SyncStatusgetSyncStatus()if the message has been synced to the servers final StringgetType()final List<Reaction>getLatestReactions()final List<Reaction>getOwnReactions()final DategetCreatedAt()final DategetUpdatedAt()final DategetDeletedAt()final DategetUpdatedLocallyAt()final DategetCreatedLocallyAt()final UsergetUser()Map<String, Object>getExtraData()final BooleangetSilent()final BooleangetShadowed()final Map<String, String>getI18n()final BooleangetShowInChannel()final ChannelInfogetChannelInfo()final UnitsetId(String id)final UnitsetCid(String cid)final UnitsetText(String text)final UnitsetParentId(@SerializedName(value = "parent_id") String parentId)final UnitsetCommand(String command)final UnitsetAttachments(List<Attachment> attachments)final UnitsetMentionedUsersIds(@SerializedName(value = "mentioned_users") List<String> mentionedUsersIds)final UnitsetMentionedUsers(@SerializedName(value = "mentioned_users") List<User> mentionedUsers)final UnitsetReplyCount(@SerializedName(value = "reply_count") Integer replyCount)final UnitsetReactionCounts(@SerializedName(value = "reaction_counts") Map<String, Integer> reactionCounts)final UnitsetReactionScores(@SerializedName(value = "reaction_scores") Map<String, Integer> reactionScores)final UnitsetSyncStatus(SyncStatus syncStatus)if the message has been synced to the servers final UnitsetType(String type)final UnitsetLatestReactions(@SerializedName(value = "latest_reactions") List<Reaction> latestReactions)final UnitsetOwnReactions(@SerializedName(value = "own_reactions") List<Reaction> ownReactions)final UnitsetCreatedAt(@SerializedName(value = "created_at") Date createdAt)final UnitsetUpdatedAt(@SerializedName(value = "updated_at") Date updatedAt)final UnitsetDeletedAt(@SerializedName(value = "deleted_at") Date deletedAt)final UnitsetUpdatedLocallyAt(Date updatedLocallyAt)final UnitsetCreatedLocallyAt(Date createdLocallyAt)final UnitsetUser(User user)UnitsetExtraData(Map<String, Object> extraData)final UnitsetSilent(Boolean silent)final UnitsetShadowed(Boolean shadowed)final UnitsetShowInChannel(@SerializedName(value = "show_in_channel") Boolean showInChannel)final UnitsetChannelInfo(@SerializedName(value = "channel") ChannelInfo channelInfo)-
Methods inherited from class io.getstream.chat.android.client.models.Message
getExtraValue, putExtraValue -
Methods inherited from class io.getstream.chat.android.client.models.CustomObject
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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, 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)
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final String component4()
-
component5
final String component5()
-
component6
final String component6()
-
component7
final List<Attachment> component7()
-
component8
final List<String> component8()
-
component9
final List<User> component9()
-
component10
final Integer component10()
-
component11
final Map<String, Integer> component11()
-
component12
final Map<String, Integer> component12()
-
component13
final SyncStatus component13()
-
component14
final String component14()
-
component15
final List<Reaction> component15()
-
component16
final List<Reaction> component16()
-
component17
final Date component17()
-
component18
final Date component18()
-
component19
final Date component19()
-
component20
final Date component20()
-
component21
final Date component21()
-
component22
final User component22()
-
component23
final Map<String, Object> component23()
-
component24
final Boolean component24()
-
component25
final Boolean component25()
-
component26
final Map<String, String> component26()
-
component27
final Boolean component27()
-
component28
final ChannelInfo component28()
-
copy
final Message copy(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, 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)
-
getParentId
final String getParentId()
-
getCommand
final String getCommand()
-
getAttachments
final List<Attachment> getAttachments()
-
getMentionedUsersIds
final List<String> getMentionedUsersIds()
-
getMentionedUsers
final List<User> getMentionedUsers()
-
getReplyCount
final Integer getReplyCount()
-
getReactionCounts
final Map<String, Integer> getReactionCounts()
-
getReactionScores
final Map<String, Integer> getReactionScores()
-
getSyncStatus
final SyncStatus getSyncStatus()
if the message has been synced to the servers
-
getLatestReactions
final List<Reaction> getLatestReactions()
-
getOwnReactions
final List<Reaction> getOwnReactions()
-
getCreatedAt
final Date getCreatedAt()
-
getUpdatedAt
final Date getUpdatedAt()
-
getDeletedAt
final Date getDeletedAt()
-
getUpdatedLocallyAt
final Date getUpdatedLocallyAt()
-
getCreatedLocallyAt
final Date getCreatedLocallyAt()
-
getExtraData
Map<String, Object> getExtraData()
-
getShadowed
final Boolean getShadowed()
-
getShowInChannel
final Boolean getShowInChannel()
-
getChannelInfo
final ChannelInfo getChannelInfo()
-
setParentId
final Unit setParentId(@SerializedName(value = "parent_id") String parentId)
-
setCommand
final Unit setCommand(String command)
-
setAttachments
final Unit setAttachments(List<Attachment> attachments)
-
setMentionedUsersIds
final Unit setMentionedUsersIds(@SerializedName(value = "mentioned_users") List<String> mentionedUsersIds)
-
setMentionedUsers
final Unit setMentionedUsers(@SerializedName(value = "mentioned_users") List<User> mentionedUsers)
-
setReplyCount
final Unit setReplyCount(@SerializedName(value = "reply_count") Integer replyCount)
-
setReactionCounts
final Unit setReactionCounts(@SerializedName(value = "reaction_counts") Map<String, Integer> reactionCounts)
-
setReactionScores
final Unit setReactionScores(@SerializedName(value = "reaction_scores") Map<String, Integer> reactionScores)
-
setSyncStatus
final Unit setSyncStatus(SyncStatus syncStatus)
if the message has been synced to the servers
-
setLatestReactions
final Unit setLatestReactions(@SerializedName(value = "latest_reactions") List<Reaction> latestReactions)
-
setOwnReactions
final Unit setOwnReactions(@SerializedName(value = "own_reactions") List<Reaction> ownReactions)
-
setCreatedAt
final Unit setCreatedAt(@SerializedName(value = "created_at") Date createdAt)
-
setUpdatedAt
final Unit setUpdatedAt(@SerializedName(value = "updated_at") Date updatedAt)
-
setDeletedAt
final Unit setDeletedAt(@SerializedName(value = "deleted_at") Date deletedAt)
-
setUpdatedLocallyAt
final Unit setUpdatedLocallyAt(Date updatedLocallyAt)
-
setCreatedLocallyAt
final Unit setCreatedLocallyAt(Date createdLocallyAt)
-
setExtraData
Unit setExtraData(Map<String, Object> extraData)
-
setShadowed
final Unit setShadowed(Boolean shadowed)
-
setShowInChannel
final Unit setShowInChannel(@SerializedName(value = "show_in_channel") Boolean showInChannel)
-
setChannelInfo
final Unit setChannelInfo(@SerializedName(value = "channel") ChannelInfo channelInfo)
-
-
-
-