IncomingMessage

data class IncomingMessage(version: String?, data: IncomingMessage.Data, error: Boolean?, account: String?) : ClientMessageWrapper

Types

Link copied to clipboard
data class Data(account: String?, source: JsonAddress?, type: String?, timestamp: Long?, sourceDevice: Int?, serverReceiverTimestamp: Long?, serverDeliverTimestamp: Long?, hasLegacyMessage: Boolean?, hasContent: Boolean?, unidentifiedSender: Boolean?, dataMessage: JsonDataMessage?, syncMessage: JsonSyncMessage?, callMessage: CallMessage?, receiptMessage: ReceiptMessage?, typingMessage: TypingMessage?, storyMessage: StoryMessage?, serverGuid: String?, decryptionErrorMessage: DecryptionErrorMessage?) : ClientMessageWrapper.Data

Properties

Link copied to clipboard
open override val account: String? = null

the account this message is from

Link copied to clipboard
open override val data: IncomingMessage.Data

the incoming object. The structure will vary from message to message, see type and version fields

Link copied to clipboard
open override val error: Boolean? = false

true if the incoming message represents an error

Link copied to clipboard
open override val version: String? = null

the version of the object in the data field