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

A local status report reply. More...

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

Public Member Functions

 LocalStatus (bool tamper, bool powerFailure)
 Initializes a new instance of LocalStatus class.
override ReadOnlySpan< byte > SecurityControlBlock ()
override byte[] BuildData ()
override byte[]? PowerFailure(byte) 0x01 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.

Properties

override byte Code [get]
bool Tamper [get]
 Gets a value indicating whether this PD is tamper.
bool PowerFailure [get]
 Gets a value indicating whether this PD is experiencing a power failure.
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 local status report reply.

Definition at line 11 of file LocalStatus.cs.

Constructor & Destructor Documentation

◆ LocalStatus()

OSDP.Net.Model.ReplyData.LocalStatus.LocalStatus ( bool tamper,
bool powerFailure )
inline

Initializes a new instance of LocalStatus class.

Parameters
tamper
powerFailure

Definition at line 18 of file LocalStatus.cs.

References PowerFailure, and Tamper.

Referenced by SecurityControlBlock().

Member Function Documentation

◆ ToString()

override byte[]? PowerFailure(byte) 0x01 override string OSDP.Net.Model.ReplyData.LocalStatus.ToString ( )
inline

Definition at line 64 of file LocalStatus.cs.

Property Documentation

◆ Code

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

Definition at line 25 of file LocalStatus.cs.

◆ PowerFailure

bool OSDP.Net.Model.ReplyData.LocalStatus.PowerFailure
get

Gets a value indicating whether this PD is experiencing a power failure.

true if power failure; otherwise, false.

Definition at line 37 of file LocalStatus.cs.

Referenced by BuildData(), and LocalStatus().

◆ Tamper

bool OSDP.Net.Model.ReplyData.LocalStatus.Tamper
get

Gets a value indicating whether this PD is tamper.

true if tamper; otherwise, false.

Definition at line 31 of file LocalStatus.cs.

Referenced by BuildData(), and LocalStatus().


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