From f68b1e9e4943b6150de543e59f3d765b65b4ac4a Mon Sep 17 00:00:00 2001 From: Andrew Knous Date: Tue, 19 Nov 2024 09:19:48 -0800 Subject: [PATCH] feat: cleans up code, adds versiport comment, changes ShowEmergencyMessage arg name to "url" --- .../DeviceTypeInterfaces/IEmergencyOSD.cs | 2 +- .../Room/Config/EssentialsRoomEmergencyConfig.cs | 2 +- .../Room/EsentialsRoomEmergencyContactClosure.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IEmergencyOSD.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IEmergencyOSD.cs index 506f904e6..7d1580272 100644 --- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IEmergencyOSD.cs +++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IEmergencyOSD.cs @@ -8,7 +8,7 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces { public interface IEmergencyOSD { - void ShowEmergencyMessage(string roomKey); + void ShowEmergencyMessage(string url); void HideEmergencyMessage(); } } diff --git a/src/PepperDash.Essentials.Core/Room/Config/EssentialsRoomEmergencyConfig.cs b/src/PepperDash.Essentials.Core/Room/Config/EssentialsRoomEmergencyConfig.cs index 76199a917..dbc068ebc 100644 --- a/src/PepperDash.Essentials.Core/Room/Config/EssentialsRoomEmergencyConfig.cs +++ b/src/PepperDash.Essentials.Core/Room/Config/EssentialsRoomEmergencyConfig.cs @@ -16,7 +16,7 @@ public class EssentialsRoomEmergencyConfig public class EssentialsRoomEmergencyTriggerConfig { /// - /// contact, + /// contact,versiport /// public string Type { get; set; } /// diff --git a/src/PepperDash.Essentials.Core/Room/EsentialsRoomEmergencyContactClosure.cs b/src/PepperDash.Essentials.Core/Room/EsentialsRoomEmergencyContactClosure.cs index 35681680c..48d24ab0e 100644 --- a/src/PepperDash.Essentials.Core/Room/EsentialsRoomEmergencyContactClosure.cs +++ b/src/PepperDash.Essentials.Core/Room/EsentialsRoomEmergencyContactClosure.cs @@ -37,7 +37,7 @@ public EssentialsRoomEmergencyContactClosure(string key, EssentialsRoomEmergency cs.VersiPorts[portNum].Register(); cs.VersiPorts[portNum].SetVersiportConfiguration(eVersiportConfiguration.DigitalInput); cs.VersiPorts[portNum].DisablePullUpResistor = true; - cs.VersiPorts[portNum].VersiportChange += EssentialsRoomEmergencyContactClosure_VersiportChange; ; + cs.VersiPorts[portNum].VersiportChange += EssentialsRoomEmergencyContactClosure_VersiportChange; } } Behavior = config.Behavior;