DoorLockTrait.GetWeekDayScheduleCommand.Response

class DoorLockTrait.GetWeekDayScheduleCommand.Response : ClusterStruct


Returns the weekly repeating schedule data for the specified schedule index.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Response(
    weekDayIndex: UByte,
    userIndex: UShort,
    status: DoorLockTrait.DlStatus,
    daysMask: DoorLockTrait.DaysMaskMap?,
    startHour: UByte?,
    startMinute: UByte?,
    endHour: UByte?,
    endMinute: UByte?
)

Creates a response payload from the GetWeekDaySchedule 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

DoorLockTrait.DaysMaskMap?

The days of the week in the week day schedule.

UByte?

This indicates the ending hour for the week day schedule.

UByte?

The ending minute for the week day schedule.

UByte?

The starting hour for the week day schedule.

UByte?

The starting minute for the week day schedule.

DoorLockTrait.DlStatus

The status of the GetWeekDaySchedule command.

UShort

The unique identifier for the user whose week day schedule is to be retrieved.

UByte

The unique identifier for the week day schedule being retrieved.

Public constructors

Response

Response(
    weekDayIndex: UByte,
    userIndex: UShort,
    status: DoorLockTrait.DlStatus = DlStatus.Success,
    daysMask: DoorLockTrait.DaysMaskMap? = null,
    startHour: UByte? = null,
    startMinute: UByte? = null,
    endHour: UByte? = null,
    endMinute: UByte? = null
)

Creates a response payload from the GetWeekDaySchedule 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

daysMask

val daysMaskDoorLockTrait.DaysMaskMap?

The days of the week in the week day schedule.

endHour

val endHourUByte?

This indicates the ending hour for the week day schedule.

endMinute

val endMinuteUByte?

The ending minute for the week day schedule.

startHour

val startHourUByte?

The starting hour for the week day schedule.

startMinute

val startMinuteUByte?

The starting minute for the week day schedule.

status

val statusDoorLockTrait.DlStatus

The status of the GetWeekDaySchedule command.

userIndex

val userIndexUShort

The unique identifier for the user whose week day schedule is to be retrieved.

weekDayIndex

val weekDayIndexUByte

The unique identifier for the week day schedule being retrieved.