OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
OSDP.Net.Model.ReplyData.OutputStatus Class Reference

A output status report reply. More...

Inheritance diagram for OSDP.Net.Model.ReplyData.OutputStatus:
OSDP.Net.Model.PayloadData

Public Member Functions

 OutputStatus (bool[] statuses)
 Prevents a default instance of the OutputStatus class from being created.
override ReadOnlySpan< byte > SecurityControlBlock ()
override byte[] BuildData ()
override string ToString ()
Public Member Functions inherited from OSDP.Net.Model.PayloadData
byte[] BuildData ()
 Converts the payload into a byte array to be sent over the wire.
ReadOnlySpan< byte > SecurityControlBlock ()
 Retrieves the security control block for a specific command data type.
virtual void CustomMessageUpdate (Span< byte > messageBuffer)
 Updates the message data before sending in the specified byte buffer.

Static Public Member Functions

static OutputStatus ParseData (ReadOnlySpan< byte > data)
 Parses the message payload bytes.

Properties

override byte Code [get]
bool[] OutputStatuses [get]
 Gets the all the PDs output statuses as an array ordered by output number.
Properties inherited from OSDP.Net.Model.PayloadData
byte Code [get]
 Gets the command or reply code byte value that represent the type of data.
virtual bool IsSecurityInitialization [get]
 Gets a value indicating whether the security initialization is performed by this payload.

Detailed Description

A output status report reply.

Definition at line 12 of file OutputStatus.cs.

Constructor & Destructor Documentation

◆ OutputStatus()

OSDP.Net.Model.ReplyData.OutputStatus.OutputStatus ( bool[] statuses)
inline

Prevents a default instance of the OutputStatus class from being created.

Definition at line 17 of file OutputStatus.cs.

References OutputStatuses.

Referenced by ParseData().

Member Function Documentation

◆ ParseData()

OutputStatus OSDP.Net.Model.ReplyData.OutputStatus.ParseData ( ReadOnlySpan< byte > data)
inlinestatic

Parses the message payload bytes.

Parameters
dataMessage payload as bytes
Returns
An instance of OutputStatus representing the message payload

Definition at line 36 of file OutputStatus.cs.

References OutputStatus().

Referenced by OSDP.Net.ControlPanel.OutputControl(), OSDP.Net.ControlPanel.OutputStatus(), and OSDP.Net.Model.Packet.ParsePayloadData().

◆ ToString()

override string OSDP.Net.Model.ReplyData.OutputStatus.ToString ( )
inline

Definition at line 45 of file OutputStatus.cs.

References OutputStatuses.

Property Documentation

◆ Code

override byte OSDP.Net.Model.ReplyData.OutputStatus.Code
get

Definition at line 23 of file OutputStatus.cs.

◆ OutputStatuses

bool [] OSDP.Net.Model.ReplyData.OutputStatus.OutputStatuses
get

Gets the all the PDs output statuses as an array ordered by output number.

Definition at line 28 of file OutputStatus.cs.

Referenced by BuildData(), OutputStatus(), and ToString().


The documentation for this class was generated from the following file: