|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Interface for formatting OSDP packets as human-readable text. More...
Public Member Functions | |
| string | FormatPacket (Packet packet, DateTime timestamp, TimeSpan? timeDelta=null) |
| Formats a successfully parsed packet as text. | |
| string | FormatError (byte[] rawData, DateTime timestamp, TimeSpan? timeDelta, string errorMessage) |
| Formats a packet that failed to parse due to an error. | |
Interface for formatting OSDP packets as human-readable text.
Definition at line 9 of file IPacketTextFormatter.cs.
| string OSDP.Net.Tracing.IPacketTextFormatter.FormatError | ( | byte[] | rawData, |
| DateTime | timestamp, | ||
| TimeSpan? | timeDelta, | ||
| string | errorMessage ) |
Formats a packet that failed to parse due to an error.
| rawData | The raw packet bytes. |
| timestamp | The timestamp when the packet was captured. |
| timeDelta | Optional time difference from the previous packet. |
| errorMessage | The error message describing why parsing failed. |
| ArgumentNullException | Thrown when rawData is null. |
Implemented in OSDP.Net.Tracing.OSDPPacketTextFormatter.
| string OSDP.Net.Tracing.IPacketTextFormatter.FormatPacket | ( | Packet | packet, |
| DateTime | timestamp, | ||
| TimeSpan? | timeDelta = null ) |
Formats a successfully parsed packet as text.
| packet | The parsed OSDP packet. |
| timestamp | The timestamp when the packet was captured. |
| timeDelta | Optional time difference from the previous packet. |
| ArgumentNullException | Thrown when packet is null. |
Implemented in OSDP.Net.Tracing.OSDPPacketTextFormatter.