OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
OSDP.Net.Model.CommandData.CommandData Class Referenceabstract

Base class representing a payload of a PD command message. More...

Inheritance diagram for OSDP.Net.Model.CommandData.CommandData:
OSDP.Net.Model.PayloadData OSDP.Net.LineQuality.BaudRateChange OSDP.Net.LineQuality.EchoRequest OSDP.Net.Model.CommandData.ACUReceiveSize OSDP.Net.Model.CommandData.BiometricReadData OSDP.Net.Model.CommandData.BiometricTemplateData OSDP.Net.Model.CommandData.CommunicationConfiguration OSDP.Net.Model.CommandData.DeviceCapabilities OSDP.Net.Model.CommandData.EncryptionKeyConfiguration OSDP.Net.Model.CommandData.ExtendedWrite OSDP.Net.Model.CommandData.FileTransferFragment OSDP.Net.Model.CommandData.GetPIVData OSDP.Net.Model.CommandData.IdReport OSDP.Net.Model.CommandData.KeepReaderActive OSDP.Net.Model.CommandData.ManufacturerSpecific OSDP.Net.Model.CommandData.OutputControls OSDP.Net.Model.CommandData.ReaderBuzzerControl OSDP.Net.Model.CommandData.ReaderLedControls OSDP.Net.Model.CommandData.ReaderTextOutput OSDP.Net.Model.CommandData.ServerCryptogramData

Static Protected Member Functions

static T[] SplitData< T > (int size, Func< byte[], T > parseDataFunction, ReadOnlySpan< byte > payloadData)
 Splits data into multiple elements of type T based on a specified size.

Properties

CommandType CommandType [get]
 Message command code.
Properties inherited from OSDP.Net.Model.PayloadData
byte Code [get]
 Gets the command or reply code byte value that represent the type of data.
virtual bool IsSecurityInitialization [get]
 Gets a value indicating whether the security initialization is performed by this payload.

Additional Inherited Members

Public Member Functions inherited from OSDP.Net.Model.PayloadData
byte[] BuildData ()
 Converts the payload into a byte array to be sent over the wire.
ReadOnlySpan< byte > SecurityControlBlock ()
 Retrieves the security control block for a specific command data type.
virtual void CustomMessageUpdate (Span< byte > messageBuffer)
 Updates the message data before sending in the specified byte buffer.

Detailed Description

Base class representing a payload of a PD command message.

Definition at line 10 of file CommandData.cs.

Member Function Documentation

◆ SplitData< T >()

T[] OSDP.Net.Model.CommandData.CommandData.SplitData< T > ( int size,
Func< byte[], T > parseDataFunction,
ReadOnlySpan< byte > payloadData )
inlinestaticprotected

Splits data into multiple elements of type T based on a specified size.

Template Parameters
TThe type of elements in the resulting array.
Parameters
sizeThe size of each element in bytes.
parseDataFunctionThe function used to parse each element of type T from a byte array.
payloadDataThe payload data to be split.
Returns
An array of elements of type T.

Definition at line 25 of file CommandData.cs.

Property Documentation

◆ CommandType

CommandType OSDP.Net.Model.CommandData.CommandData.CommandType
getabstract

Message command code.

Definition at line 15 of file CommandData.cs.


The documentation for this class was generated from the following file: