ThermostatTrait.ThermostatSuggestionStruct

class ThermostatTrait.ThermostatSuggestionStruct : ClusterStruct


Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

ThermostatSuggestionStruct(
    uniqueId: UByte,
    presetHandle: ByteArray,
    effectiveTime: UInt,
    expirationTime: UInt
)

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

Public constructors

ThermostatSuggestionStruct

ThermostatSuggestionStruct(
    uniqueId: UByte,
    presetHandle: ByteArray = ByteArray(0),
    effectiveTime: UInt,
    expirationTime: UInt
)

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

effectiveTime

val effectiveTimeUInt

expirationTime

val expirationTimeUInt

presetHandle

val presetHandleByteArray

uniqueId

val uniqueIdUByte