From d8d27949c34a71d90da2ab7d9c66c8e3d5c9d4a8 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Fri, 26 Apr 2024 09:31:27 -0600 Subject: [PATCH 1/3] fix: updates to IMobileControlTouchpanelController --- .../DeviceTypeInterfaces/IMobileControl.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs index db070289..b856a7c0 100644 --- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs +++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IMobileControl.cs @@ -106,10 +106,11 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces Action Action { get; } } - public interface IMobileControlTouchpanelController + public interface IMobileControlTouchpanelController : IKeyed { - StringFeedback AppUrlFeedback { get; } string DefaultRoomKey { get; } - string DeviceKey { get; } + void SetAppUrl(string url); + bool UseDirectServer { get; } + bool ZoomRoomController { get; } } } \ No newline at end of file From 82f78bf06861741ff614a21f631fdd1392993a01 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Fri, 26 Apr 2024 12:08:26 -0600 Subject: [PATCH 2/3] feat: adds StarShutdown method to IShutdownPromptTimer --- src/PepperDash.Essentials.Core/Room/Interfaces.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PepperDash.Essentials.Core/Room/Interfaces.cs b/src/PepperDash.Essentials.Core/Room/Interfaces.cs index ca7df3ae..640dc91f 100644 --- a/src/PepperDash.Essentials.Core/Room/Interfaces.cs +++ b/src/PepperDash.Essentials.Core/Room/Interfaces.cs @@ -77,9 +77,11 @@ namespace PepperDash.Essentials.Core SecondsCountdownTimer ShutdownPromptTimer { get; } void SetShutdownPromptSeconds(int seconds); + + void StartShutdown(eShutdownType type); } - /// + /// /// Describes a room with a tech password /// public interface ITechPassword From 80b8cc638560ef9811f1c33de851a1350ddded5d Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Fri, 26 Apr 2024 13:15:15 -0600 Subject: [PATCH 3/3] feat: Adds SecondsRemainingFeedback to SecondsCountdownTimer --- src/PepperDash.Essentials.Core/Timers/CountdownTimer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PepperDash.Essentials.Core/Timers/CountdownTimer.cs b/src/PepperDash.Essentials.Core/Timers/CountdownTimer.cs index 28bd6811..1cac0a50 100644 --- a/src/PepperDash.Essentials.Core/Timers/CountdownTimer.cs +++ b/src/PepperDash.Essentials.Core/Timers/CountdownTimer.cs @@ -23,6 +23,8 @@ namespace PepperDash.Essentials.Core public IntFeedback PercentFeedback { get; private set; } public StringFeedback TimeRemainingFeedback { get; private set; } + public IntFeedback SecondsRemainingFeedback { get; private set; } + public bool CountsDown { get; set; } /// @@ -64,6 +66,8 @@ namespace PepperDash.Essentials.Core : String.Format("{0:00}:{1:00}", timeSpan.Minutes, timeSpan.Seconds); }); + SecondsRemainingFeedback = new IntFeedback(() => (int)(FinishTime - DateTime.Now).TotalSeconds); + PercentFeedback = new IntFeedback( () => @@ -144,6 +148,7 @@ namespace PepperDash.Essentials.Core PercentFeedback.FireUpdate(); TimeRemainingFeedback.FireUpdate(); + SecondsRemainingFeedback.FireUpdate(); } } } \ No newline at end of file