feat(wip): removing base classes from Essentials.Core

This commit is contained in:
Nick Genovese
2023-11-06 15:38:48 -05:00
parent f43559941b
commit d2e1979d96
16 changed files with 937 additions and 11 deletions

View File

@@ -8,7 +8,6 @@ using PepperDash.Essentials.Core.Bridges;
namespace PepperDash.Essentials.Core
{
[Obsolete("Please use PepperDash.Essentials.Devices.Common")]
public abstract class CrestronGenericBaseDevice : EssentialsDevice, IOnline, IHasFeedback, ICommunicationMonitor, IUsageTracking
{
protected GenericBase Hardware;

View File

@@ -64,6 +64,7 @@ namespace PepperDash.Essentials.Core.Devices
#endregion
}
[Obsolete("Please use PepperDash.Essentials.Devices.Common")]
public class LaptopFactory : EssentialsDeviceFactory<Laptop>
{
public LaptopFactory()

View File

@@ -203,6 +203,7 @@ namespace PepperDash.Essentials.Core
}
}
[Obsolete("Please use PepperDash.Essentials.Device.Common")]
public class BasicIrDisplayFactory : EssentialsDeviceFactory<BasicIrDisplay>
{
public BasicIrDisplayFactory()

View File

@@ -13,7 +13,7 @@ using PepperDash.Essentials.Core.Bridges;
namespace PepperDash.Essentials.Core
{
[Obsolete("Please use PepperDash.Essentials.Devices.Common")]
public abstract class DisplayBase : EssentialsDevice, IHasFeedback, IRoutingSinkWithSwitching, IHasPowerControl, IWarmingCooling, IUsageTracking, IPower
public abstract class DisplayBase : EssentialsDevice, IHasFeedback, IRoutingSinkWithSwitching, IHasPowerControl, IWarmingCooling, IUsageTracking
{
public event SourceInfoChangeHandler CurrentSourceChange;

View File

@@ -8,7 +8,7 @@ namespace PepperDash.Essentials.Core.Shades
/// </summary>
public interface IShades
{
List<ShadeBase> Shades { get; }
List<IShadesOpenCloseStop> Shades { get; }
}
/// <summary>

View File

@@ -16,14 +16,14 @@ namespace PepperDash.Essentials.Core.Shades
{
ShadeControllerConfigProperties Config;
public List<ShadeBase> Shades { get; private set; }
public List<IShadesOpenCloseStop> Shades { get; private set; }
public ShadeController(string key, string name, ShadeControllerConfigProperties config)
: base(key, name)
{
Config = config;
Shades = new List<ShadeBase>();
Shades = new List<IShadesOpenCloseStop>();
}
public override bool CustomActivate()