ExtendedThermostatTrait.PresetSynonyms

class ExtendedThermostatTrait.PresetSynonyms : ClusterStruct


Synonyms for the preset in a given language.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

PresetSynonyms(language: String, synonyms: List<String>)

Creates the PresetSynonyms 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

String

ISO 639-1 language code, for example, en for English.

List<String>

Synonym of the preset, with the first string in this list being used as the canonical name of the preset in the given language.

Public constructors

PresetSynonyms

PresetSynonyms(language: String = "", synonyms: List<String> = emptyList())

Creates the PresetSynonyms 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

language

val languageString

ISO 639-1 language code, for example, en for English.

synonyms

val synonymsList<String>

Synonym of the preset, with the first string in this list being used as the canonical name of the preset in the given language.