diff --git a/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DgeController.cs b/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DgeController.cs index 6b586ac3..86d05ba8 100644 --- a/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DgeController.cs +++ b/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DgeController.cs @@ -11,26 +11,29 @@ using Newtonsoft.Json; using PepperDash.Core; using PepperDash.Essentials.Core; using PepperDash.Essentials.Core.Config; +using Crestron.SimplSharpPro.DeviceSupport; namespace PepperDash.Essentials.DM.Endpoints.DGEs { /// /// Wrapper class for DGE-100 and DM-DGE-200-C /// - public class DgeController : CrestronGenericBaseDevice, IComPorts, IIROutputPorts - { - public Dge100 DigitalGraphicsEngine { get; private set; } - - public DeviceConfig DeviceConfig { get; private set; } + public class DgeController : CrestronGenericBaseDevice, IComPorts, IIROutputPorts, IHasBasicTriListWithSmartObject + { + private readonly Dge100 _dge; + + public BasicTriListWithSmartObject Panel { get { return _dge; } } + + public DeviceConfig _dc; CrestronTouchpanelPropertiesConfig PropertiesConfig; public DgeController(string key, string name, Dge100 device, DeviceConfig dc, CrestronTouchpanelPropertiesConfig props) :base(key, name, device) { - DigitalGraphicsEngine = device; + _dge = device; - DeviceConfig = dc; + _dc = dc; PropertiesConfig = props; } @@ -39,12 +42,12 @@ namespace PepperDash.Essentials.DM.Endpoints.DGEs public CrestronCollection ComPorts { - get { return DigitalGraphicsEngine.ComPorts; } + get { return _dge.ComPorts; } } public int NumberOfComPorts { - get { return DigitalGraphicsEngine.NumberOfComPorts; } + get { return _dge.NumberOfComPorts; } } #endregion @@ -53,12 +56,12 @@ namespace PepperDash.Essentials.DM.Endpoints.DGEs public CrestronCollection IROutputPorts { - get { return DigitalGraphicsEngine.IROutputPorts; } + get { return _dge.IROutputPorts; } } public int NumberOfIROutputPorts { - get { return DigitalGraphicsEngine.NumberOfIROutputPorts; } + get { return _dge.NumberOfIROutputPorts; } } #endregion