OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
IPacket.cs
1#nullable enable
2
3using System;
5
6namespace OSDP.Net.Model;
7
12public interface IPacket
13{
17 byte Address { get; }
18
22 byte Sequence { get; }
23
28
33
37 bool IsUsingCrc { get; }
38
47 bool IsPayloadDecrypted { get; }
48
52 bool IsSecureMessage { get; }
53
57 bool IsUsingDefaultKey { get; }
58
62 ReadOnlyMemory<byte> RawPayloadData { get; }
63
67 ReadOnlyMemory<byte> RawData { get; }
68
74}
Represents a parsed OSDP packet with decoded message information.
Definition IPacket.cs:13
ReadOnlyMemory< byte > RawData
Raw bytes of the entire message data.
Definition IPacket.cs:67
bool IsSecureMessage
Indicates if the message was sent via an established secure channel.
Definition IPacket.cs:52
ReadOnlyMemory< byte > RawPayloadData
Raw bytes of the payload data.
Definition IPacket.cs:62
CommandType? CommandType
The type of command sent or null if it is a reply.
Definition IPacket.cs:27
byte Sequence
Sequence number of the message.
Definition IPacket.cs:22
bool IsUsingCrc
Is CRC being used.
Definition IPacket.cs:37
byte Address
Address of the message.
Definition IPacket.cs:17
bool IsUsingDefaultKey
Indicates if the secure channel is using the default key.
Definition IPacket.cs:57
ReplyType? ReplyType
The type of reply sent or null if it is a command.
Definition IPacket.cs:32
bool IsPayloadDecrypted
Indicates whether the payload was successfully decrypted.
Definition IPacket.cs:47
object? ParsePayloadData()
Parse the payload data into an object.