feat: remove DisplayBase from Core

This commit is contained in:
Andrew Welker
2025-03-25 00:10:22 -05:00
parent af0855cea3
commit fe2cd573e5
22 changed files with 39 additions and 771 deletions

View File

@@ -500,19 +500,19 @@ namespace PepperDash.Essentials
messengerAdded = true;
}
if (device is Core.DisplayBase)
{
Debug.Console(2, this, "Adding actions for device: {0}", device.Key);
//if (device is Core.DisplayBase)
//{
// Debug.Console(2, this, "Adding actions for device: {0}", device.Key);
var dbMessenger = new CoreDisplayBaseMessenger(
$"{device.Key}-displayBase-{Key}",
$"/device/{device.Key}",
device as Core.DisplayBase
);
AddDefaultDeviceMessenger(dbMessenger);
// var dbMessenger = new CoreDisplayBaseMessenger(
// $"{device.Key}-displayBase-{Key}",
// $"/device/{device.Key}",
// device as Core.DisplayBase
// );
// AddDefaultDeviceMessenger(dbMessenger);
messengerAdded = true;
}
// messengerAdded = true;
//}
if (device is TwoWayDisplayBase)
{
@@ -533,25 +533,6 @@ namespace PepperDash.Essentials
messengerAdded = true;
}
if (device is Core.TwoWayDisplayBase)
{
var display = device as Core.TwoWayDisplayBase;
Debug.Console(
2,
this,
"Adding TwoWayDisplayBase for device: {0}",
device.Key
);
var twoWayDisplayMessenger = new CoreTwoWayDisplayBaseMessenger(
$"{device.Key}-twoWayDisplay-{Key}",
string.Format("/device/{0}", device.Key),
display
);
AddDefaultDeviceMessenger(twoWayDisplayMessenger);
messengerAdded = true;
}
if (device is IBasicVolumeWithFeedback)
{
var deviceKey = device.Key;

View File

@@ -8,12 +8,14 @@
<EnableDynamicLoading>true</EnableDynamicLoading>
<Deterministic>false</Deterministic>
<AssemblyTitle>epi-essentials-mobile-control</AssemblyTitle>
<AssemblyName>epi-essentials-mobile-control</AssemblyName>
<Company>PepperDash Technologies</Company>
<Product>epi-essentials-mobile-control</Product>
<Description>This software is a plugin designed to work as a part of PepperDash Essentials for Crestron control processors. This plugin allows for connection to a PepperDash Mobile Control server.</Description>
<Copyright>Copyright 2020</Copyright>
<Version>4.0.0-local</Version>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<InformationalVersion>$(Version)</InformationalVersion>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<OutputPath>bin\$(Configuration)\</OutputPath>