ColorControlTrait.EnhancedMoveToHueCommand.Request

class ColorControlTrait.EnhancedMoveToHueCommand.Request


The request payload for the EnhancedMoveToHue command.

Summary

Public constructors

Request(
    enhancedHue: UShort,
    direction: ColorControlTrait.DirectionEnum,
    transitionTime: UShort,
    optionsMask: ColorControlTrait.OptionsBitmap,
    optionsOverride: ColorControlTrait.OptionsBitmap
)

Creates a request payload for the EnhancedMoveToHue command.

Public properties

ColorControlTrait.DirectionEnum

The direction in which to move the enhanced hue.

UShort

The enhanced hue to be moved to.

ColorControlTrait.OptionsBitmap

Determines which bits in the options attribute should be overridden by optionsOverride.

ColorControlTrait.OptionsBitmap

If the corresponding bit in optionsMask is set to 1, the bit set here overrides the corresponding bit in options attribute.

UShort

The time (in 0.1 seconds) taken to move the device to the new hue.

Public constructors

Request

Request(
    enhancedHue: UShort,
    direction: ColorControlTrait.DirectionEnum = DirectionEnum.Shortest,
    transitionTime: UShort,
    optionsMask: ColorControlTrait.OptionsBitmap = OptionsBitmap(),
    optionsOverride: ColorControlTrait.OptionsBitmap = OptionsBitmap()
)

Creates a request payload for the EnhancedMoveToHue command.

Public properties

direction

val directionColorControlTrait.DirectionEnum

The direction in which to move the enhanced hue. This must be one of the values in ColorControlTrait.HueDirection.

enhancedHue

val enhancedHueUShort

The enhanced hue to be moved to. The valid range of values is 0 to 65534.

optionsMask

val optionsMaskColorControlTrait.OptionsBitmap

Determines which bits in the options attribute should be overridden by optionsOverride.

optionsOverride

val optionsOverrideColorControlTrait.OptionsBitmap

If the corresponding bit in optionsMask is set to 1, the bit set here overrides the corresponding bit in options attribute.

transitionTime

val transitionTimeUShort

The time (in 0.1 seconds) taken to move the device to the new hue.