DataMessage

data class DataMessage(val timestampMs: Long, val topic: String, val data: ByteArray, val senderAttendeeId: String, val senderExternalUserId: String, val throttled: Boolean)

Data message received from server.

Constructors

Link copied to clipboard
constructor(timestampMs: Long, topic: String, data: ByteArray, senderAttendeeId: String, senderExternalUserId: String, throttled: Boolean)

Properties

Link copied to clipboard

: ByteArray - Data payload

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

: Long - Monotonically increasing server ingest time

Link copied to clipboard

: String - Topic this message was sent on

Functions

Link copied to clipboard
fun <T> fromJson(clazz: Class<T>): T

Helper method to convert ByteArray data to object of given type

Link copied to clipboard
fun text(): String

Helper method to convert ByteArray data to String