OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
PayloadData.cs
1using System;
2
3namespace OSDP.Net.Model
4{
8 public abstract class PayloadData
9 {
19 public abstract byte[] BuildData();
20
24 public abstract byte Code { get; }
25
32 public virtual bool IsSecurityInitialization => false;
33
43 public abstract ReadOnlySpan<byte> SecurityControlBlock();
44
49 public virtual void CustomMessageUpdate(Span<byte> messageBuffer)
50 {
51 }
52
53 }
54}
Base class representing a payload an OSDP message.
Definition PayloadData.cs:9
virtual void CustomMessageUpdate(Span< byte > messageBuffer)
Updates the message data before sending in the specified byte buffer.
ReadOnlySpan< byte > SecurityControlBlock()
Retrieves the security control block for a specific command data type.
byte[] BuildData()
Converts the payload into a byte array to be sent over the wire.
byte Code
Gets the command or reply code byte value that represent the type of data.
virtual bool IsSecurityInitialization
Gets a value indicating whether the security initialization is performed by this payload.