mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-28 11:54:57 +00:00
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:
@@ -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"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user