Message
data class Message( var id: String = "", var cid: String = "", var text: String = "", val html: String = "", var parentId: String? = null, var command: String? = null, var attachments: MutableList<Attachment> = mutableListOf(), var mentionedUsersIds: MutableList<String> = mutableListOf(), var mentionedUsers: MutableList<User> = mutableListOf(), var replyCount: Int = 0, var reactionCounts: MutableMap<String, Int> = mutableMapOf(), var reactionScores: MutableMap<String, Int> = mutableMapOf(), var syncStatus: SyncStatus = SyncStatus.COMPLETED, var syncDescription: MessageSyncDescription? = null, var type: String = "", var latestReactions: MutableList<Reaction> = mutableListOf(), var ownReactions: MutableList<Reaction> = mutableListOf(), var createdAt: Date? = null, var updatedAt: Date? = null, var deletedAt: Date? = null, var updatedLocallyAt: Date? = null, var createdLocallyAt: Date? = null, var user: User = User(), var extraData: MutableMap<String, Any> = mutableMapOf(), var silent: Boolean = false, var shadowed: Boolean = false, val i18n: Map<String, String> = mapOf(), var showInChannel: Boolean = false, var channelInfo: ChannelInfo? = null, var replyTo: Message? = null, var replyMessageId: String? = null, var pinned: Boolean = false, var pinnedAt: Date? = null, var pinExpires: Date? = null, var pinnedBy: User? = null, var threadParticipants: List<User> = emptyList(), var skipPushNotification: Boolean = false, var skipEnrichUrl: Boolean = false) : CustomObject, ComparableFieldProvider
Content copied to clipboard
Constructors
Link copied to clipboard
fun Message( id: String = "", cid: String = "", text: String = "", html: String = "", parentId: String? = null, command: String? = null, attachments: MutableList<Attachment> = mutableListOf(), mentionedUsersIds: MutableList<String> = mutableListOf(), mentionedUsers: MutableList<User> = mutableListOf(), replyCount: Int = 0, reactionCounts: MutableMap<String, Int> = mutableMapOf(), reactionScores: MutableMap<String, Int> = mutableMapOf(), syncStatus: SyncStatus = SyncStatus.COMPLETED, syncDescription: MessageSyncDescription? = null, type: String = "", latestReactions: MutableList<Reaction> = mutableListOf(), ownReactions: MutableList<Reaction> = mutableListOf(), createdAt: Date? = null, updatedAt: Date? = null, deletedAt: Date? = null, updatedLocallyAt: Date? = null, createdLocallyAt: Date? = null, user: User = User(), extraData: MutableMap<String, Any> = mutableMapOf(), silent: Boolean = false, shadowed: Boolean = false, i18n: Map<String, String> = mapOf(), showInChannel: Boolean = false, channelInfo: ChannelInfo? = null, replyTo: Message? = null, replyMessageId: String? = null, pinned: Boolean = false, pinnedAt: Date? = null, pinExpires: Date? = null, pinnedBy: User? = null, threadParticipants: List<User> = emptyList(), skipPushNotification: Boolean = false, skipEnrichUrl: Boolean = false)
Content copied to clipboard
Types
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Contains details related to syncStatus.
Link copied to clipboard
Functions
Inherited functions
Extensions
Link copied to clipboard
fun Message.addMyReaction(reaction: Reaction, enforceUnique: Boolean = false)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Fills Message.mentionedUsersIds based on Message.text and Channel.members.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Updates a message that whose request (Edition/Delete/Reaction update...) has failed.
Link copied to clipboard
Update the online state of a message.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard