DoorLockTrait.GetUserCommand.Response

class DoorLockTrait.GetUserCommand.Response


Returns the user for the specified userIndex.

Summary

Public constructors

Response(
    userIndex: UShort,
    userName: String?,
    userUniqueId: UInt?,
    userStatus: DoorLockTrait.UserStatusEnum?,
    userType: DoorLockTrait.UserTypeEnum?,
    credentialRule: DoorLockTrait.CredentialRuleEnum?,
    credentials: List<DoorLockTrait.CredentialStruct>?,
    creatorFabricIndex: UByte?,
    lastModifiedFabricIndex: UByte?,
    nextUserIndex: UShort?
)

Creates a response payload from the GetUser command.

Public properties

UByte?

The user's creator fabric index.

DoorLockTrait.CredentialRuleEnum?

The credential rule that can be applied to the user.

List<DoorLockTrait.CredentialStruct>?

The user's credentials.

UByte?

The user's last modifier fabric index.

UShort?

The next occupied user index in the database, which is useful for quickly identifying occupied user slots in the database.

UShort

The unique identifier for the user.

String?

The user's name.

DoorLockTrait.UserStatusEnum?

The status of the user.

DoorLockTrait.UserTypeEnum?

The type of the user.

UInt?

The unique user id of the user.

Public constructors

Response

Response(
    userIndex: UShort,
    userName: String? = null,
    userUniqueId: UInt? = null,
    userStatus: DoorLockTrait.UserStatusEnum? = null,
    userType: DoorLockTrait.UserTypeEnum? = null,
    credentialRule: DoorLockTrait.CredentialRuleEnum? = null,
    credentials: List<DoorLockTrait.CredentialStruct>? = null,
    creatorFabricIndex: UByte? = null,
    lastModifiedFabricIndex: UByte? = null,
    nextUserIndex: UShort? = null
)

Creates a response payload from the GetUser command.

Public properties

creatorFabricIndex

val creatorFabricIndexUByte?

The user's creator fabric index.

credentialRule

val credentialRuleDoorLockTrait.CredentialRuleEnum?

The credential rule that can be applied to the user.

credentials

val credentialsList<DoorLockTrait.CredentialStruct>?

The user's credentials.

lastModifiedFabricIndex

val lastModifiedFabricIndexUByte?

The user's last modifier fabric index.

nextUserIndex

val nextUserIndexUShort?

The next occupied user index in the database, which is useful for quickly identifying occupied user slots in the database.

userIndex

val userIndexUShort

The unique identifier for the user.

userName

val userNameString?

The user's name.

userStatus

val userStatusDoorLockTrait.UserStatusEnum?

The status of the user.

userType

val userTypeDoorLockTrait.UserTypeEnum?

The type of the user.

userUniqueId

val userUniqueIdUInt?

The unique user id of the user.