OpenCloseTrait.StepCommand.Request

class OpenCloseTrait.StepCommand.Request


The request payload for the Step command.

Summary

Public constructors

Request(
    openRelativePercent: Double,
    openDirection: OpenCloseTrait.Direction
)

Creates a request payload for the Step command.

Public properties

OpenCloseTrait.Direction

The direction in which to open.

Double

The exact percentage to change open-close state.

Public constructors

Request

Request(
    openRelativePercent: Double = 0.0,
    openDirection: OpenCloseTrait.Direction = Direction.Unspecified
)

Creates a request payload for the Step command.

Public properties

openDirection

val openDirectionOpenCloseTrait.Direction

The direction in which to open. Only present if the device supports multiple directions, as indicated by the OpenCloseTrait.Attributes.openDirection attribute, and a direction is specified by the user.

openRelativePercent

val openRelativePercentDouble

The exact percentage to change open-close state.