TogglesTrait.ToggleSynonyms

class TogglesTrait.ToggleSynonyms : ClusterStruct


Synonyms of the toggle in a given language.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

ToggleSynonyms(language: String, toggleSynonyms: List<String>)

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

The language code in ISO 639-1.

List<String>

Synonyms of the toggle where the first string in this list is used as the canonical name of the level in that language.

Public constructors

ToggleSynonyms

ToggleSynonyms(
    language: String = "",
    toggleSynonyms: List<String> = emptyList()
)

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

language

val languageString

The language code in ISO 639-1.

toggleSynonyms

val toggleSynonymsList<String>

Synonyms of the toggle where the first string in this list is used as the canonical name of the level in that language.