From c9c3a74f2f13653a501d0f801bbba62f629bbde9 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 17 Apr 2025 09:19:34 -0500 Subject: [PATCH 1/2] fix: add ISelectableItems interface --- .../DeviceTypeInterfaces/ISelectableItems.cs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ISelectableItems.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ISelectableItems.cs index 0d3968df..9479099c 100644 --- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ISelectableItems.cs +++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ISelectableItems.cs @@ -4,19 +4,24 @@ using System.Collections.Generic; namespace PepperDash.Essentials.Core.DeviceTypeInterfaces { - /// - /// Describes a collection of items that can be selected - /// - /// type for the keys in the collection. Probably a string or enum - public interface ISelectableItems + public interface ISelectableItems where TValue : ISelectableItem { event EventHandler ItemsUpdated; event EventHandler CurrentItemChanged; [JsonProperty("items")] - Dictionary Items { get; set; } + Dictionary Items { get; set; } [JsonProperty("currentItem")] TKey CurrentItem { get; set; } + + } + + /// + /// Describes a collection of items that can be selected + /// + /// type for the keys in the collection. Probably a string or enum + public interface ISelectableItems : ISelectableItems + { } } \ No newline at end of file From 9db980ead10f50a5f9b567f6c8d05e0cc723be50 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Fri, 18 Apr 2025 11:36:05 -0500 Subject: [PATCH 2/2] fix: ILightingScenesDynamic inherits from ILightingScenes --- src/PepperDash.Essentials.Core/Lighting/Lighting Interfaces.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PepperDash.Essentials.Core/Lighting/Lighting Interfaces.cs b/src/PepperDash.Essentials.Core/Lighting/Lighting Interfaces.cs index 1ff0508f..c762147c 100644 --- a/src/PepperDash.Essentials.Core/Lighting/Lighting Interfaces.cs +++ b/src/PepperDash.Essentials.Core/Lighting/Lighting Interfaces.cs @@ -18,7 +18,7 @@ namespace PepperDash.Essentials.Core.Lighting } - public interface ILightingScenesDynamic + public interface ILightingScenesDynamic : ILightingScenes { event EventHandler LightingScenesUpdated; }