OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
IdReport.cs
1using System;
4
6
10public class IdReport : CommandData
11{
15 public IdReport() : this(false)
16 {
17 }
18
26 public IdReport(bool requestExtended)
27 {
28 RequestExtended = requestExtended;
29 }
30
34 public bool RequestExtended { get; }
35
37 public override CommandType CommandType => CommandType.IdReport;
38
40 public override byte Code => (byte)CommandType;
41
43 public override ReadOnlySpan<byte> SecurityControlBlock() => SecurityBlock.CommandMessageWithDataSecurity;
44
46 public override byte[] BuildData()
47 {
48 return [RequestExtended ? (byte)0x01 : (byte)0x00];
49 }
50}
Contains standard Security Control Block data that can be used when building messages.
Base class representing a payload of a PD command message.
IdReport()
Creates a new instance of IdReport requesting the standard PD ID block.
Definition IdReport.cs:15
override CommandType CommandType
Definition IdReport.cs:37
IdReport(bool requestExtended)
Creates a new instance of IdReport.
Definition IdReport.cs:26
override ReadOnlySpan< byte > SecurityControlBlock()
bool RequestExtended
Gets a value indicating whether this request is for the extended ID response.
Definition IdReport.cs:34