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

A raw card data reply. More...

Inheritance diagram for OSDP.Net.Model.ReplyData.RawCardData:
OSDP.Net.Model.PayloadData

Public Member Functions

 RawCardData (byte readerNumber, FormatCode format, BitArray data)
 Creates a new instance of RawCardData.
override ReadOnlySpan< byte > SecurityControlBlock ()
override string ToString ()
override byte[] BuildData ()
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.

Static Public Member Functions

static RawCardData ParseData (ReadOnlySpan< byte > data)
 Parses the data.

Properties

byte ReaderNumber [get]
 The reader number.
FormatCode FormatCode [get]
 The card format code.
ushort BitCount [get]
 The bit count returned by the card.
BitArray Data [get]
 The raw card data.
override byte Code [get]
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.

Detailed Description

A raw card data reply.

Definition at line 13 of file RawCardData.cs.

Constructor & Destructor Documentation

◆ RawCardData()

OSDP.Net.Model.ReplyData.RawCardData.RawCardData ( byte readerNumber,
FormatCode format,
BitArray data )
inline

Creates a new instance of RawCardData.

The parameters passed here are defined in OSDP spec for osdp_RAW response

Parameters
readerNumberReader number
formatFormat code
dataData

Definition at line 22 of file RawCardData.cs.

References BitCount, Data, FormatCode, and ReaderNumber.

Referenced by ParseData().

Member Function Documentation

◆ BuildData()

override byte[] OSDP.Net.Model.ReplyData.RawCardData.BuildData ( )
inline

Definition at line 134 of file RawCardData.cs.

References BitCount, Data, FormatCode, and ReaderNumber.

◆ ParseData()

RawCardData OSDP.Net.Model.ReplyData.RawCardData.ParseData ( ReadOnlySpan< byte > data)
inlinestatic

Parses the data.

Parameters
dataThe data.
Returns
RawCardData.
Exceptions
System.ExceptionInvalid size for the data

Definition at line 65 of file RawCardData.cs.

References FormatCode, and RawCardData().

Referenced by OSDP.Net.Model.Packet.ParsePayloadData().

◆ SecurityControlBlock()

override ReadOnlySpan< byte > OSDP.Net.Model.ReplyData.RawCardData.SecurityControlBlock ( )
inline

Definition at line 54 of file RawCardData.cs.

◆ ToString()

override string OSDP.Net.Model.ReplyData.RawCardData.ToString ( )
inline

Definition at line 82 of file RawCardData.cs.

Property Documentation

◆ BitCount

ushort OSDP.Net.Model.ReplyData.RawCardData.BitCount
get

The bit count returned by the card.

Definition at line 43 of file RawCardData.cs.

Referenced by BuildData(), and RawCardData().

◆ Code

override byte OSDP.Net.Model.ReplyData.RawCardData.Code
get

Definition at line 51 of file RawCardData.cs.

◆ Data

BitArray OSDP.Net.Model.ReplyData.RawCardData.Data
get

The raw card data.

Definition at line 48 of file RawCardData.cs.

Referenced by BuildData(), and RawCardData().

◆ FormatCode

FormatCode OSDP.Net.Model.ReplyData.RawCardData.FormatCode
get

The card format code.

Definition at line 38 of file RawCardData.cs.

Referenced by BuildData(), ParseData(), and RawCardData().

◆ ReaderNumber

byte OSDP.Net.Model.ReplyData.RawCardData.ReaderNumber
get

The reader number.

Definition at line 33 of file RawCardData.cs.

Referenced by BuildData(), and RawCardData().


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