|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Represents a parsed OSDP packet with decoded message information. More...
Public Member Functions | |
| object? | ParsePayloadData () |
| Parse the payload data into an object. | |
Properties | |
| byte | Address [get] |
| Address of the message. | |
| byte | Sequence [get] |
| Sequence number of the message. | |
| CommandType? | CommandType [get] |
| The type of command sent or null if it is a reply. | |
| ReplyType? | ReplyType [get] |
| The type of reply sent or null if it is a command. | |
| bool | IsUsingCrc [get] |
| Is CRC being used. | |
| bool | IsPayloadDecrypted [get] |
| Indicates whether the payload was successfully decrypted. | |
| bool | IsSecureMessage [get] |
| Indicates if the message was sent via an established secure channel. | |
| bool | IsUsingDefaultKey [get] |
| Indicates if the secure channel is using the default key. | |
| ReadOnlyMemory< byte > | RawPayloadData [get] |
| Raw bytes of the payload data. | |
| ReadOnlyMemory< byte > | RawData [get] |
| Raw bytes of the entire message data. | |
Represents a parsed OSDP packet with decoded message information.
This interface enables easier mocking and testing of packet consumers.
Definition at line 12 of file IPacket.cs.
| object? OSDP.Net.Model.IPacket.ParsePayloadData | ( | ) |
Parse the payload data into an object.
Implemented in OSDP.Net.Model.Packet.
|
get |
Address of the message.
Implemented in OSDP.Net.Model.Packet.
Definition at line 17 of file IPacket.cs.
|
get |
The type of command sent or null if it is a reply.
Implemented in OSDP.Net.Model.Packet.
Definition at line 27 of file IPacket.cs.
|
get |
Indicates whether the payload was successfully decrypted.
When true, the payload contains decrypted data that can be parsed. When false, the payload is still encrypted because the secure channel was not established or the required key was not available.
Implemented in OSDP.Net.Model.Packet.
Definition at line 47 of file IPacket.cs.
|
get |
Indicates if the message was sent via an established secure channel.
Implemented in OSDP.Net.Model.Packet.
Definition at line 52 of file IPacket.cs.
|
get |
|
get |
Indicates if the secure channel is using the default key.
Implemented in OSDP.Net.Model.Packet.
Definition at line 57 of file IPacket.cs.
|
get |
Raw bytes of the entire message data.
Implemented in OSDP.Net.Model.Packet.
Definition at line 67 of file IPacket.cs.
|
get |
Raw bytes of the payload data.
Implemented in OSDP.Net.Model.Packet.
Definition at line 62 of file IPacket.cs.
|
get |
The type of reply sent or null if it is a command.
Implemented in OSDP.Net.Model.Packet.
Definition at line 32 of file IPacket.cs.
|
get |
Sequence number of the message.
Implemented in OSDP.Net.Model.Packet.
Definition at line 22 of file IPacket.cs.