Binary

Constructors

Link copied to clipboard
constructor(data: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun binaryOrNull(): ByteArray?

Returns the binary content of the message if it's a binary message, otherwise returns null.

Link copied to clipboard

Returns the binary content of the message if it's a binary message, otherwise throws an exception.

Link copied to clipboard
open fun textOrNull(): String?

Returns the text content of the message if it's a text message, otherwise returns null.

Link copied to clipboard
open fun textOrThrow(): String

Returns the text content of the message if it's a text message, otherwise throws an exception.