fix: add constructor that takes IHasInputs<T>

In order to satisfy the requirements for the `MessengerBase` class, the
`ISelectableItemsMessenger` class needs to take an `IHasInputs<T>`, as that is
the device that implements `IKeyName`. We may want to consider adding a
`IHasInputsMessenger` specifically for those devices that implement that
interface vs the `ISelectableItemsMessenger`.
This commit is contained in:
Andrew Welker
2025-04-09 10:49:31 -05:00
parent 403c03491c
commit 372274d9fa
2 changed files with 25 additions and 7 deletions

View File

@@ -766,7 +766,7 @@ namespace PepperDash.Essentials
var messenger = new ISelectableItemsMessenger<string>(
$"{device.Key}-inputs-{Key}",
$"/device/{device.Key}",
stringInputs.Inputs,
stringInputs,
"inputs"
);
@@ -782,7 +782,7 @@ namespace PepperDash.Essentials
var messenger = new ISelectableItemsMessenger<byte>(
$"{device.Key}-inputs-{Key}",
$"/device/{device.Key}",
byteInputs.Inputs,
byteInputs,
"inputs"
);
@@ -798,7 +798,7 @@ namespace PepperDash.Essentials
var messenger = new ISelectableItemsMessenger<int>(
$"{device.Key}-inputs-{Key}",
$"/device/{device.Key}",
intInputs.Inputs,
intInputs,
"inputs"
);