|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
A keypad reply. More...
Public Member Functions | |
| KeypadData (byte readerNumber, string data) | |
| Creates a new instance of KeypadData. | |
| override ReadOnlySpan< byte > | SecurityControlBlock () |
| override byte[] | BuildData () |
| override string | ToString () |
| 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 KeypadData | ParseData (ReadOnlySpan< byte > data) |
| Parses the message payload bytes. | |
Properties | |
| byte | ReaderNumber [get] |
| Reader number 0=First Reader 1=Second Reader. | |
| ushort | DigitCount [get] |
| Number of digits in the return data. | |
| byte[] | Data [get] |
| 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 keypad reply.
Definition at line 11 of file KeypadData.cs.
|
inline |
Creates a new instance of KeypadData.
| readerNumber | Reader number (0=First Reader, 1=Second Reader) |
| data | Data returned from the keypad as a string |
Definition at line 20 of file KeypadData.cs.
References Data, DigitCount, and ReaderNumber.
Referenced by ParseData().
|
inline |
Definition at line 91 of file KeypadData.cs.
References Data, DigitCount, and ReaderNumber.
|
inlinestatic |
Parses the message payload bytes.
| data | Message payload as bytes |
Definition at line 105 of file KeypadData.cs.
References KeypadData().
Referenced by OSDP.Net.Model.Packet.ParsePayloadData().
|
inline |
Definition at line 85 of file KeypadData.cs.
|
inline |
Definition at line 121 of file KeypadData.cs.
|
get |
Definition at line 82 of file KeypadData.cs.
|
get |
Data returned from keypad
The key encoding uses the following data representation:
Special/function keys are reported as upper case ASCII:
Definition at line 79 of file KeypadData.cs.
Referenced by BuildData(), and KeypadData().
|
get |
Number of digits in the return data.
Definition at line 35 of file KeypadData.cs.
Referenced by BuildData(), and KeypadData().
|
get |
Reader number 0=First Reader 1=Second Reader.
Definition at line 30 of file KeypadData.cs.
Referenced by BuildData(), and KeypadData().