mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 04:26:49 +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:
parent
403c03491c
commit
372274d9fa
2 changed files with 25 additions and 7 deletions
|
|
@ -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"
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue