feat: updates IHasInput to remove requirement for SetInputs method (unnecessary)

This commit is contained in:
Neil Dorin
2024-05-03 13:34:22 -06:00
parent 2b6f79b68f
commit 3ee8cb7ea3
4 changed files with 5 additions and 8 deletions

View File

@@ -15,10 +15,8 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
/// <example> /// <example>
/// See MockDisplay for example implemntation /// See MockDisplay for example implemntation
/// </example> /// </example>
public interface IHasInputs<TKey, TSelector>: IKeyName public interface IHasInputs<T, TSelector>: IKeyName
{ {
ISelectableItems<TKey> Inputs { get; } ISelectableItems<T> Inputs { get; }
void SetInput(TSelector selector);
} }
} }

View File

@@ -17,6 +17,6 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
Dictionary<TKey, ISelectableItem> Items { get; set; } Dictionary<TKey, ISelectableItem> Items { get; set; }
[JsonProperty("currentItem")] [JsonProperty("currentItem")]
string CurrentItem { get; set; } TKey CurrentItem { get; set; }
} }
} }

View File

@@ -64,7 +64,7 @@ namespace PepperDash.Essentials.Core
SetManualMode(); SetManualMode();
} }
} }
else else
{ {
SetManualMode(); SetManualMode();
} }

View File

@@ -54,8 +54,7 @@ namespace PepperDash.Essentials.Devices.Common.Displays
public class MockDisplayInput : ISelectableItem public class MockDisplayInput : ISelectableItem
{ {
private IHasInputs<string, string> _parent; private MockDisplay _parent;
private bool _isSelected; private bool _isSelected;