CookTrait.FoodPreset

class CookTrait.FoodPreset


Internal name of the food preset. This name can be non-user-friendly, and is shared across all languages.

Summary

Public constructors

FoodPreset(
    foodPresetName: String,
    supportedUnits: List<CookTrait.Unit>,
    foodSynonyms: List<CookTrait.FoodSynonym>
)

Creates the FoodPreset class.

Public properties

String

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

List<CookTrait.FoodSynonym>

Food name synonyms for the preset in each supported language.

List<CookTrait.Unit>

Contains all of the units supported by the device for a specific food.

Public constructors

FoodPreset

FoodPreset(
    foodPresetName: String = "",
    supportedUnits: List<CookTrait.Unit> = emptyList(),
    foodSynonyms: List<CookTrait.FoodSynonym> = emptyList()
)

Creates the FoodPreset class.

Public properties

foodPresetName

val foodPresetNameString

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

foodSynonyms

val foodSynonymsList<CookTrait.FoodSynonym>

Food name synonyms for the preset in each supported language.

supportedUnits

val supportedUnitsList<CookTrait.Unit>

Contains all of the units supported by the device for a specific food.