DoorLockTrait.UnlockWithTimeoutCommand.Request

class DoorLockTrait.UnlockWithTimeoutCommand.Request : ClusterStruct


The request payload for the UnlockWithTimeout command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(timeout: UShort, pinCode: OptionalValue<ByteArray>)

Creates a request payload for the UnlockWithTimeout 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<ByteArray>
UShort

The number of seconds to wait before relocking the door lock.

Public constructors

Request

Request(
    timeout: UShort,
    pinCode: OptionalValue<ByteArray> = OptionalValue.absent()
)

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

pinCode

val pinCodeOptionalValue<ByteArray>

timeout

val timeoutUShort

The number of seconds to wait before relocking the door lock.