JsonDataMessage

data class JsonDataMessage(timestamp: Long?, attachments: List<JsonAttachment>, body: String?, group: JsonGroupInfo?, groupV2: JsonGroupV2Info?, endSession: Boolean?, expiresInSeconds: Int?, profileKeyUpdate: Boolean?, quote: JsonQuote?, contacts: List<SharedContact>, previews: List<JsonPreview>, sticker: JsonSticker?, viewOnce: Boolean?, reaction: JsonReaction?, remoteDelete: RemoteDelete?, mentions: List<JsonMention>)

Properties

attachments
Link copied to clipboard
common
val attachments: List<JsonAttachment>
files attached to the incoming message
body
Link copied to clipboard
common
val body: String? = null
the text body of the incoming message.
contacts
Link copied to clipboard
common
val contacts: List<SharedContact>
if the incoming message has a shared contact, the contact's information will be here
endSession
Link copied to clipboard
common
val endSession: Boolean? = null
expiresInSeconds
Link copied to clipboard
common
val expiresInSeconds: Int? = null
the expiry timer on the incoming message.
group
Link copied to clipboard
common
val group: JsonGroupInfo? = null
if the incoming message was sent to a v1 group, information about that group will be here
groupV2
Link copied to clipboard
common
val groupV2: JsonGroupV2Info? = null
is the incoming message was sent to a v2 group, basic identifying information about that group will be here.
mentions
Link copied to clipboard
common
val mentions: List<JsonMention>
list of mentions in the message
previews
Link copied to clipboard
common
val previews: List<JsonPreview>
if the incoming message has a link preview, information about that preview will be here
profileKeyUpdate
Link copied to clipboard
common
val profileKeyUpdate: Boolean? = null
quote
Link copied to clipboard
common
val quote: JsonQuote? = null
if the incoming message is a quote or reply to another message, this will contain information about that message
reaction
Link copied to clipboard
common
val reaction: JsonReaction? = null
if the message adds or removes a reaction to another message, this will indicate what change is being made
remoteDelete
Link copied to clipboard
common
val remoteDelete: RemoteDelete? = null
if the inbound message is deleting a previously sent message, indicates which message should be deleted
sticker
Link copied to clipboard
common
val sticker: JsonSticker? = null
if the incoming message is a sticker, information about the sicker will be here
timestamp
Link copied to clipboard
common
val timestamp: Long? = null
the timestamp that the message was sent at, according to the sender's device.
viewOnce
Link copied to clipboard
common
val viewOnce: Boolean? = null
indicates the message is a view once message.