ExtendedThermostatTrait.EnergySuggestion

class ExtendedThermostatTrait.EnergySuggestion : ClusterStruct


Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

EnergySuggestion(
    suggestionId: String,
    createdTimestamp: ULong,
    campaignId: String,
    startsAt: ULong,
    expiresAt: ULong
)

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

EnergySuggestion

EnergySuggestion(
    suggestionId: String = "",
    createdTimestamp: ULong,
    campaignId: String = "",
    startsAt: ULong,
    expiresAt: ULong
)

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

campaignId

val campaignIdString

createdTimestamp

val createdTimestampULong

expiresAt

val expiresAtULong

startsAt

val startsAtULong

suggestionId

val suggestionIdString