CameraAudioPlayerTrait.PlayCommand.Request

class CameraAudioPlayerTrait.PlayCommand.Request : ClusterStruct


The request payload for the Play command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Creates a request payload for the Play command.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

OptionalValue<CameraAudioPlayerTrait.RawAudioStruct>

Raw audio payload options.

OptionalValue<CameraAudioPlayerTrait.TtsTextStruct>

Text-to-speech payload options.

Public constructors

Request

Request(
    rawAudio: OptionalValue<CameraAudioPlayerTrait.RawAudioStruct> = OptionalValue.absent(),
    ttsText: OptionalValue<CameraAudioPlayerTrait.TtsTextStruct> = OptionalValue.absent()
)

Creates a request payload for the Play command.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

rawAudio

val rawAudio: OptionalValue<CameraAudioPlayerTrait.RawAudioStruct>

Raw audio payload options. Mutually exclusive with ttsText.

ttsText

val ttsText: OptionalValue<CameraAudioPlayerTrait.TtsTextStruct>

Text-to-speech payload options. Mutually exclusive with rawAudio.