CookTrait.FoodSynonym

class CookTrait.FoodSynonym : ClusterStruct


Available food synonyms for a language.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

FoodSynonym(synonym: List<String>, lang: String)

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

Synonyms for the preset, which should include both singular and plural forms, if applicable.

Public constructors

FoodSynonym

FoodSynonym(synonym: List<String> = emptyList(), lang: String = "")

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

lang

val langString

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

synonym

val synonymList<String>

Synonyms for the preset, which should include both singular and plural forms, if applicable.