MicrowaveOvenControlTrait.SetCookingParametersCommand.Request

class MicrowaveOvenControlTrait.SetCookingParametersCommand.Request : ClusterStruct


The request payload for the SetCookingParameters command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(
    cookMode: OptionalValue<UByte>,
    cookTime: OptionalValue<UInt>,
    powerSetting: OptionalValue<UByte>,
    wattSettingIndex: OptionalValue<UByte>,
    startAfterSetting: OptionalValue<Boolean>
)

Creates a request payload for the SetCookingParameters command.

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

OptionalValue<UByte>

The value to which the currentMode attribute should be set.

OptionalValue<UInt>

The cook time associated with the operation of the device.

OptionalValue<UByte>

The power setting associated with the operation of the device.

OptionalValue<Boolean>

Indicates whether or not the oven should be started when the command is received.

OptionalValue<UByte>

The value to which the selectedWattIndex attribute is set.

Public constructors

Request

Request(
    cookMode: OptionalValue<UByte> = OptionalValue.absent(),
    cookTime: OptionalValue<UInt> = OptionalValue.absent(),
    powerSetting: OptionalValue<UByte> = OptionalValue.absent(),
    wattSettingIndex: OptionalValue<UByte> = OptionalValue.absent(),
    startAfterSetting: OptionalValue<Boolean> = OptionalValue.absent()
)

Creates a request payload for the SetCookingParameters command.

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

cookMode

val cookModeOptionalValue<UByte>

The value to which the currentMode attribute should be set.

cookTime

val cookTimeOptionalValue<UInt>

The cook time associated with the operation of the device.

powerSetting

val powerSettingOptionalValue<UByte>

The power setting associated with the operation of the device.

startAfterSetting

val startAfterSettingOptionalValue<Boolean>

Indicates whether or not the oven should be started when the command is received.

wattSettingIndex

val wattSettingIndexOptionalValue<UByte>

The value to which the selectedWattIndex attribute is set.