MessageView

data class MessageView(val id: String, val rev: String, val text: String, val facets: List<Facet>? = null, val embed: MessageViewEmbedUnion? = null, val reactions: List<ReactionView>? = null, val replyTo: MessageViewReplyToUnion? = null, val sender: MessageViewSender, val sentAt: Timestamp)

Parameters

facets

Annotations of text (mentions, URLs, hashtags, etc)

reactions

Reactions to this message, in ascending order of creation time.

replyTo

If set, the message this message is replying to. The full view of the referenced message is embedded so the client can render it inline. Only a single level is embedded: the embedded message will not itself have a populated 'replyTo' field even if it was also a reply.

Constructors

Link copied to clipboard
constructor(id: String, rev: String, text: String, facets: List<Facet>? = null, embed: MessageViewEmbedUnion? = null, reactions: List<ReactionView>? = null, replyTo: MessageViewReplyToUnion? = null, sender: MessageViewSender, sentAt: Timestamp)

Properties

Link copied to clipboard
Link copied to clipboard

Annotations of text (mentions, URLs, hashtags, etc)

Link copied to clipboard
val id: String
Link copied to clipboard

Reactions to this message, in ascending order of creation time.

Link copied to clipboard

If set, the message this message is replying to. The full view of the referenced message is embedded so the client can render it inline. Only a single level is embedded: the embedded message will not itself have a populated 'replyTo' field even if it was also a reply.

Link copied to clipboard
val rev: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard