ContentAppObserverTrait.ContentAppMessageCommand.Request

class ContentAppObserverTrait.ContentAppMessageCommand.Request : ClusterStruct


The request payload for the ContentAppMessage command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(data: OptionalValue<String>, encodingHint: String)

Creates a request payload for the ContentAppMessage 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<String>

Content app-specific data.

String

A content app-specific hint as to the encoding of the data.

Public constructors

Request

Request(
    data: OptionalValue<String> = OptionalValue.absent(),
    encodingHint: String = ""
)

Creates a request payload for the ContentAppMessage 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

data

val dataOptionalValue<String>

Content app-specific data.

encodingHint

val encodingHintString

A content app-specific hint as to the encoding of the data.