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

A negative reply. More...

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

Public Member Functions

 Nak (ErrorCode errorCode)
 Creates a new instance of Nak class.
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.

Properties

ErrorCode ErrorCode [get]
 Gets the error code.
IEnumerable< byte > ExtraData [get]
 Gets the extra data.
override byte Code [get]
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 negative reply.

Definition at line 13 of file Nak.cs.

Constructor & Destructor Documentation

◆ Nak()

OSDP.Net.Model.ReplyData.Nak.Nak ( ErrorCode errorCode)
inline

Creates a new instance of Nak class.

Parameters
errorCodeError code associated with NAK response

Definition at line 26 of file Nak.cs.

References ErrorCode, and ExtraData.

Member Function Documentation

◆ BuildData()

override byte[] OSDP.Net.Model.ReplyData.Nak.BuildData ( )
inline

Definition at line 77 of file Nak.cs.

References ErrorCode.

◆ SecurityControlBlock()

override ReadOnlySpan< byte > OSDP.Net.Model.ReplyData.Nak.SecurityControlBlock ( )
inline

Definition at line 48 of file Nak.cs.

◆ ToString()

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

Definition at line 85 of file Nak.cs.

References ExtraData.

Property Documentation

◆ Code

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

Definition at line 45 of file Nak.cs.

◆ ErrorCode

ErrorCode OSDP.Net.Model.ReplyData.Nak.ErrorCode
get

Gets the error code.

Definition at line 37 of file Nak.cs.

Referenced by BuildData(), and Nak().

◆ ExtraData

IEnumerable<byte> OSDP.Net.Model.ReplyData.Nak.ExtraData
get

Gets the extra data.

Definition at line 42 of file Nak.cs.

Referenced by Nak(), and ToString().


The documentation for this class was generated from the following file:
  • OSDP.Net/Model/ReplyData/Nak.cs