OpenCloseTrait.OpenCommand.Request

class OpenCloseTrait.OpenCommand.Request : ClusterStruct


The request payload for the Open command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Creates a request payload for the Open 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

OpenCloseTrait.Direction

The direction in which to open.

Public constructors

Request

Request(openDirection: OpenCloseTrait.Direction = Direction.Unspecified)

Creates a request payload for the Open 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

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.