MessageData

data class MessageData(var id: MessageId, var clientKey: ULong, var deliveryCursor: String? = null, var conversationId: ConversationId, var topic: String, var senderInboxId: InboxId, var sentAt: Timestamp, var insertedAt: Timestamp, var expiresAt: Timestamp?, var expiryUnknown: Boolean = false, var kind: MessageKind, var deliveryStatus: DeliveryStatus, var rawBytes: ByteArray, var contentType: ContentTypeId?, var fallback: String?, var encoded: EncodedContent?, var content: MessageContent, var replyCount: ULong, var reactions: List<ReactionMessage>, var reactionMessageCount: ULong, var inReplyTo: ReplyParent?)

A message value contains records and enums only.

Constructors

Link copied to clipboard
constructor(id: MessageId, clientKey: ULong, deliveryCursor: String? = null, conversationId: ConversationId, topic: String, senderInboxId: InboxId, sentAt: Timestamp, insertedAt: Timestamp, expiresAt: Timestamp?, expiryUnknown: Boolean = false, kind: MessageKind, deliveryStatus: DeliveryStatus, rawBytes: ByteArray, contentType: ContentTypeId?, fallback: String?, encoded: EncodedContent?, content: MessageContent, replyCount: ULong, reactions: List<ReactionMessage>, reactionMessageCount: ULong, inReplyTo: ReplyParent?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The received type, when the envelope has a readable type field.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Uncompressed codec input. Absent if conversion or decompression fails.

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
Link copied to clipboard

The original received serialization. Empty after deletion.

Link copied to clipboard

Unexpired reaction messages to this message, including removals and ones that do not decode. It is not a reaction tally.

Link copied to clipboard

At most the 50 latest reaction messages, oldest first, that decode as reactions. Read the rest with message_reactions.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int