1using System.Collections.Generic;
10 private static readonly Dictionary<CommandType, string> CommandDisplayNames =
new()
36 {
CommandType.AuthenticateChallenge,
"osdp_CRAUTH" },
40 private static readonly Dictionary<ReplyType, string> ReplyDisplayNames =
new()
45 {
ReplyType.PdCapabilitiesReport,
"osdp_PDCAP" },
46 {
ReplyType.LocalStatusReport,
"osdp_LSTATR" },
47 {
ReplyType.InputStatusReport,
"osdp_ISTATR" },
48 {
ReplyType.OutputStatusReport,
"osdp_OSTATR" },
49 {
ReplyType.ReaderStatusReport,
"osdp_RSTATR" },
51 {
ReplyType.FormattedReaderData,
"osdp_FMT" },
53 {
ReplyType.PdCommunicationsConfigurationReport,
"osdp_COM" },
54 {
ReplyType.BiometricData,
"osdp_BIOREADR" },
55 {
ReplyType.BiometricMatchResult,
"osdp_BIOMATCHR" },
56 {
ReplyType.ExtendedPdIdReport,
"osdp_EXT_PDID" },
60 {
ReplyType.FileTransferStatus,
"osdp_FTSTAT" },
62 {
ReplyType.ResponseToChallenge,
"osdp_CRAUTHR" },
63 {
ReplyType.ManufactureSpecific,
"osdp_MFGREP" },
77 return CommandDisplayNames.TryGetValue(commandType, out var name)
79 : commandType.ToString();
92 return ReplyDisplayNames.TryGetValue(replyType, out var name)
94 : replyType.ToString();
Extension methods for CommandType and ReplyType enums.
static string GetDisplayName(this ReplyType replyType)
Gets the OSDP protocol name for the reply type.
static string GetDisplayName(this CommandType commandType)
Gets the OSDP protocol name for the command type.
ReplyType
Identifies the type of OSDP protocol reply (PD -> ACU) message.
CommandType
Identifies the type of OSDP protocol command (ACU -> PD) message.