Text

data class Text(val messageBody: String, val linkPreview: List<MessageEntity.LinkPreview> = listOf(), val mentions: List<MessageEntity.Mention> = listOf(), val quotedMessageId: String? = null, val isQuoteVerified: Boolean? = null, val quotedMessage: MessageEntityContent.Text.QuotedMessage? = null) : MessageEntityContent.Regular

Constructors

Link copied to clipboard
constructor(messageBody: String, linkPreview: List<MessageEntity.LinkPreview> = listOf(), mentions: List<MessageEntity.Mention> = listOf(), quotedMessageId: String? = null, isQuoteVerified: Boolean? = null, quotedMessage: MessageEntityContent.Text.QuotedMessage? = null)

Types

Link copied to clipboard
data class QuotedMessage(val id: String, val senderId: QualifiedIDEntity, val isQuotingSelfUser: Boolean, val isVerified: Boolean, val senderName: String?, val dateTime: String, val editTimestamp: String?, val visibility: MessageEntity.Visibility, val contentType: MessageEntity.ContentType, val textBody: String?, val assetMimeType: String?, val assetName: String?, val locationName: String?)

Properties

Link copied to clipboard
val isQuoteVerified: Boolean? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val messageBody: String
Link copied to clipboard

Details of the message being quoted. Unused when inserting into the DB.

Link copied to clipboard
val quotedMessageId: String? = null

ID of a message being quoted. When persisting the content, this is the ID that will be used for quotes.