From 0f57799382a6658b1a942696424f56c34b695581 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Thu, 14 Mar 2024 12:26:05 -0600 Subject: [PATCH] feat: Adds TSelector generic type to IHasSurroundSoundModes --- .../DeviceTypeInterfaces/IHasSurroundSoundModes.cs | 4 +++- .../Displays/MockDisplayInputs.cs | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasSurroundSoundModes.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasSurroundSoundModes.cs index 85b01319..c1c4ec86 100644 --- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasSurroundSoundModes.cs +++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasSurroundSoundModes.cs @@ -11,8 +11,10 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces /// Describes a device that has selectable surround sound modes /// /// the type to use as the key for each input item. Most likely an enum or string - public interface IHasSurroundSoundModes: IKeyName + public interface IHasSurroundSoundModes: IKeyName { ISelectableItems SurroundSoundModes { get; } + + void SetSurroundSoundMode(TSelector selector); } } diff --git a/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplayInputs.cs b/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplayInputs.cs index 9035508a..f6fb7bc0 100644 --- a/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplayInputs.cs +++ b/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplayInputs.cs @@ -10,20 +10,20 @@ namespace PepperDash.Essentials.Devices.Common.Displays { public class MockDisplayInputs : ISelectableItems { - private Dictionary _inputs; + private Dictionary _items; public Dictionary Items { get { - return _inputs; + return _items; } set { - if (_inputs == value) + if (_items == value) return; - _inputs = value; + _items = value; ItemsUpdated?.Invoke(this, null); }