|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
A formated card data reply. More...
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. | |
A formated card data reply.
Definition at line 13 of file FormattedCardData.cs.
|
inline |
Creates a new instance of FormattedCardData.
The parameters passed here are defined in OSDP spec for osdp_FMT response
| readerNumber | Reader number |
| direction | Read direction |
| data | Data |
Definition at line 22 of file FormattedCardData.cs.
References Data, Lenght, ReadDirection, and ReaderNumber.
Referenced by ParseData().
|
inline |
Definition at line 97 of file FormattedCardData.cs.
References Data, ReadDirection, and ReaderNumber.
|
inlinestatic |
Parses the data.
| data | The data. |
Definition at line 64 of file FormattedCardData.cs.
References FormattedCardData(), and ReadDirection.
|
inline |
Definition at line 54 of file FormattedCardData.cs.
|
inline |
Definition at line 86 of file FormattedCardData.cs.
|
get |
Definition at line 51 of file FormattedCardData.cs.
|
get |
The formatted card data.
Definition at line 48 of file FormattedCardData.cs.
Referenced by BuildData(), and FormattedCardData().
|
get |
The lenght of the data.
Definition at line 43 of file FormattedCardData.cs.
Referenced by FormattedCardData().
|
get |
The direction for reading the formatted card data.
Definition at line 38 of file FormattedCardData.cs.
Referenced by BuildData(), FormattedCardData(), and ParseData().
|
get |
The reader number.
Definition at line 33 of file FormattedCardData.cs.
Referenced by BuildData(), and FormattedCardData().