getData

fun <T> <Error class: unknown class>.getData(): T

Get the data of the AssistantStreamEvent using the provided serializer from the corresponding event type.

Parameters

the type of the data.

Throws

IllegalStateException

if the AssistantStreamEvent data is null.

ClassCastException

if the AssistantStreamEvent data cannot be cast to the provided type.


fun <T> <Error class: unknown class>.getData(serializer: KSerializer<T>): T

Get the data of the AssistantStreamEvent using the provided serializer.

Throws

IllegalStateException

if the AssistantStreamEvent data is null.

ClassCastException

if the AssistantStreamEvent data cannot be cast to the provided type.