mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 04:04:58 +00:00
feat: updates IHasInput to remove requirement for SetInputs method (unnecessary)
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user