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