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

A formated card data reply. More...

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

Public Member Functions

 FormattedCardData (byte readerNumber, ReadDirection direction, string data)
 Creates a new instance of FormattedCardData.
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 FormattedCardData ParseData (ReadOnlySpan< byte > data)
 Parses the data.

Properties

byte ReaderNumber [get]
 The reader number.
ReadDirection ReadDirection [get]
 The direction for reading the formatted card data.
ushort Lenght [get]
 The lenght of the data.
string Data [get]
 The formatted 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 formated card data reply.

Definition at line 13 of file FormattedCardData.cs.

Constructor & Destructor Documentation

◆ FormattedCardData()

OSDP.Net.Model.ReplyData.FormattedCardData.FormattedCardData ( byte readerNumber,
ReadDirection direction,
string data )
inline

Creates a new instance of FormattedCardData.

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

Parameters
readerNumberReader number
directionRead direction
dataData

Definition at line 22 of file FormattedCardData.cs.

References Data, Lenght, ReadDirection, and ReaderNumber.

Referenced by ParseData().

Member Function Documentation

◆ BuildData()

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

Definition at line 97 of file FormattedCardData.cs.

References Data, ReadDirection, and ReaderNumber.

◆ ParseData()

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

Parses the data.

Parameters
dataThe data.
Returns
FormattedCardData.

Definition at line 64 of file FormattedCardData.cs.

References FormattedCardData(), and ReadDirection.

◆ SecurityControlBlock()

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

Definition at line 54 of file FormattedCardData.cs.

◆ ToString()

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

Definition at line 86 of file FormattedCardData.cs.

Property Documentation

◆ Code

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

Definition at line 51 of file FormattedCardData.cs.

◆ Data

string OSDP.Net.Model.ReplyData.FormattedCardData.Data
get

The formatted card data.

Definition at line 48 of file FormattedCardData.cs.

Referenced by BuildData(), and FormattedCardData().

◆ Lenght

ushort OSDP.Net.Model.ReplyData.FormattedCardData.Lenght
get

The lenght of the data.

Definition at line 43 of file FormattedCardData.cs.

Referenced by FormattedCardData().

◆ ReadDirection

ReadDirection OSDP.Net.Model.ReplyData.FormattedCardData.ReadDirection
get

The direction for reading the formatted card data.

Definition at line 38 of file FormattedCardData.cs.

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

◆ ReaderNumber

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

The reader number.

Definition at line 33 of file FormattedCardData.cs.

Referenced by BuildData(), and FormattedCardData().


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