From c9c3a74f2f13653a501d0f801bbba62f629bbde9 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 17 Apr 2025 09:19:34 -0500 Subject: [PATCH] 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