RvcOperationalStateTrait.OperationalStateStruct

class RvcOperationalStateTrait.OperationalStateStruct : ClusterStruct


Used to indicate a possible state of the device.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

OperationalStateStruct(
    operationalStateId: UByte,
    operationalStateLabel: OptionalValue<String>
)

Creates the OperationalStateStruct class.

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

UByte
OptionalValue<String>

A human-readable description of the operational state.

Public constructors

OperationalStateStruct

OperationalStateStruct(
    operationalStateId: UByte,
    operationalStateLabel: OptionalValue<String> = OptionalValue.absent()
)

Creates the OperationalStateStruct class.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

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

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

Public properties

operationalStateId

val operationalStateIdUByte

operationalStateLabel

val operationalStateLabelOptionalValue<String>

A human-readable description of the operational state. Only present when the operationalStateId is vendor-specific.