mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
feat: moves mockdisplay factory from PepperDash.Essentials.Core to PepperDash.Essential.Devices.Common
This commit is contained in:
@@ -220,19 +220,5 @@ namespace PepperDash.Essentials.Core
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[Obsolete("Please use PepperDash.Essentials.Devices.Common, this will be removed in 2.1")]
|
|
||||||
public class MockDisplayFactory : EssentialsDeviceFactory<MockDisplay>
|
|
||||||
{
|
|
||||||
public MockDisplayFactory()
|
|
||||||
{
|
|
||||||
TypeNames = new List<string>() { "mockdisplay" };
|
|
||||||
}
|
|
||||||
|
|
||||||
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
|
||||||
{
|
|
||||||
Debug.LogMessage(LogEventLevel.Debug, "Factory Attempting to create new Mock Display Device");
|
|
||||||
return new MockDisplay(dc.Key, dc.Name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,7 @@ using Crestron.SimplSharpPro.DeviceSupport;
|
|||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
using PepperDash.Essentials.Core;
|
using PepperDash.Essentials.Core;
|
||||||
using PepperDash.Essentials.Core.Bridges;
|
using PepperDash.Essentials.Core.Bridges;
|
||||||
|
using PepperDash.Essentials.Core.Config;
|
||||||
using PepperDash.Essentials.Core.DeviceTypeInterfaces;
|
using PepperDash.Essentials.Core.DeviceTypeInterfaces;
|
||||||
using PepperDash.Essentials.Core.Routing;
|
using PepperDash.Essentials.Core.Routing;
|
||||||
using Serilog.Events;
|
using Serilog.Events;
|
||||||
@@ -251,4 +252,17 @@ namespace PepperDash.Essentials.Devices.Common.Displays
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public class MockDisplayFactory : EssentialsDeviceFactory<MockDisplay>
|
||||||
|
{
|
||||||
|
public MockDisplayFactory()
|
||||||
|
{
|
||||||
|
TypeNames = new List<string>() { "mockdisplay" };
|
||||||
|
}
|
||||||
|
|
||||||
|
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
||||||
|
{
|
||||||
|
Debug.LogMessage(LogEventLevel.Debug, "Factory Attempting to create new Mock Display Device");
|
||||||
|
return new MockDisplay(dc.Key, dc.Name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user