amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.realtime.datamessage / DataMessage

# DataMessage

`data class DataMessage`

Data message received from server.

### Constructors

#### <init> | Data message received from server. `DataMessage(timestampMs: Long, topic: String, data: ByteArray, senderAttendeeId: String, senderExternalUserId: String, throttled: Boolean)`

### Properties

#### data | : ByteArray - Data payload `val data: ByteArray`
#### senderAttendeeId | Sender attendee `val senderAttendeeId: String`
#### senderExternalUserId | Sender attendee external user Id `val senderExternalUserId: String`
#### throttled | true if server throttled or rejected message, false if server has posted the message to its recipients or it's not a sender receipt `val throttled: Boolean`
#### timestampMs | : Long - Monotonically increasing server ingest time `val timestampMs: Long`
#### topic | : String - Topic this message was sent on `val topic: String`

### Functions

#### fromJson | Helper method to convert ByteArray data to object of given type `fun <T> fromJson(clazz: Class<T>): T`
#### text | Helper method to convert ByteArray data to String `fun text(): String`