ThermostatTrait.ThermostatSuggestionStruct

class ThermostatTrait.ThermostatSuggestionStruct : ClusterStruct


This struct is provisional and is not available for use.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

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

Creates the ThermostatSuggestionStruct 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 constructors

ThermostatSuggestionStruct

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

Creates the ThermostatSuggestionStruct class.

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