struct Matter::Cluster::Definitions::DoorLock::Credential

Included Modules

Defined in:

matter/cluster/definitions/door_lock.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(any : TLV::Any) #

[View source]

Class Method Detail

def self.from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) #

[View source]
def self.from_slice(bytes : Bytes) #

[View source]
def self.from_tlv(any : TLV::Any) #

[View source]
def self.from_tlv(data : Bytes) #

[View source]

Instance Method Detail

def credential_index : UInt16 #

This is the index of the specific credential used to authorize the lock operation in the list of credentials identified by CredentialType (e.g. schedule, PIN, RFID, etc.). This shall be set to 0 if CredentialType is ProgrammingPIN or does not correspond to a list that can be indexed into.


[View source]
def credential_index=(credential_index : UInt16) #

This is the index of the specific credential used to authorize the lock operation in the list of credentials identified by CredentialType (e.g. schedule, PIN, RFID, etc.). This shall be set to 0 if CredentialType is ProgrammingPIN or does not correspond to a list that can be indexed into.


[View source]
def credential_type : CredentialType #

The credential type used to authorize the lock operation.


[View source]
def credential_type=(credential_type : CredentialType) #

The credential type used to authorize the lock operation.


[View source]
def to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil #

[View source]
def to_slice : Bytes #

[View source]
def to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any #

[View source]