|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
A raw card data reply. More...
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. | |
A raw card data reply.
Definition at line 13 of file RawCardData.cs.
|
inline |
Creates a new instance of RawCardData.
The parameters passed here are defined in OSDP spec for osdp_RAW response
| readerNumber | Reader number |
| format | Format code |
| data | Data |
Definition at line 22 of file RawCardData.cs.
References BitCount, Data, FormatCode, and ReaderNumber.
Referenced by ParseData().
|
inline |
Definition at line 134 of file RawCardData.cs.
References BitCount, Data, FormatCode, and ReaderNumber.
|
inlinestatic |
Parses the data.
| data | The data. |
| System.Exception | Invalid size for the data |
Definition at line 65 of file RawCardData.cs.
References FormatCode, and RawCardData().
Referenced by OSDP.Net.Model.Packet.ParsePayloadData().
|
inline |
Definition at line 54 of file RawCardData.cs.
|
inline |
Definition at line 82 of file RawCardData.cs.
|
get |
The bit count returned by the card.
Definition at line 43 of file RawCardData.cs.
Referenced by BuildData(), and RawCardData().
|
get |
Definition at line 51 of file RawCardData.cs.
|
get |
The raw card data.
Definition at line 48 of file RawCardData.cs.
Referenced by BuildData(), and RawCardData().
|
get |
The card format code.
Definition at line 38 of file RawCardData.cs.
Referenced by BuildData(), ParseData(), and RawCardData().
|
get |
The reader number.
Definition at line 33 of file RawCardData.cs.
Referenced by BuildData(), and RawCardData().