OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
IPacketTextFormatter.cs
1using System;
3
4namespace OSDP.Net.Tracing;
5
9public interface IPacketTextFormatter
10{
19 string FormatPacket(Packet packet, DateTime timestamp, TimeSpan? timeDelta = null);
20
30 string FormatError(byte[] rawData, DateTime timestamp, TimeSpan? timeDelta, string errorMessage);
31}
Information details of a message packet.
Definition Packet.cs:14
Interface for formatting OSDP packets as human-readable text.
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.