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

Extension methods for CommandType and ReplyType enums. More...

Static Public Member Functions

static string GetDisplayName (this CommandType commandType)
 Gets the OSDP protocol name for the command type.
static string GetDisplayName (this ReplyType replyType)
 Gets the OSDP protocol name for the reply type.

Detailed Description

Extension methods for CommandType and ReplyType enums.

Definition at line 8 of file CommandReplyExtensions.cs.

Member Function Documentation

◆ GetDisplayName() [1/2]

string OSDP.Net.Messages.CommandReplyExtensions.GetDisplayName ( this CommandType commandType)
inlinestatic

Gets the OSDP protocol name for the command type.

Parameters
commandTypeThe command type.
Returns
The OSDP protocol name (e.g., "osdp_LED").

CommandType.LEDControl.GetDisplayName() returns "osdp_LED"

Definition at line 75 of file CommandReplyExtensions.cs.

◆ GetDisplayName() [2/2]

string OSDP.Net.Messages.CommandReplyExtensions.GetDisplayName ( this ReplyType replyType)
inlinestatic

Gets the OSDP protocol name for the reply type.

Parameters
replyTypeThe reply type.
Returns
The OSDP protocol name (e.g., "osdp_ACK").

ReplyType.PdIdReport.GetDisplayName() returns "osdp_PDID"

Definition at line 90 of file CommandReplyExtensions.cs.


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