From 4c5b60bddb8b2dda7dbf1586d51ebecd80fd7cbd Mon Sep 17 00:00:00 2001 From: Trevor Payne Date: Tue, 12 May 2020 14:55:12 -0500 Subject: [PATCH] Exposed ICEC to DGE Controller Classes --- .../Essentials_DM/Endpoints/DGEs/Dge100Controller.cs | 12 ++++++++++-- .../Endpoints/DGEs/DmDge200CController.cs | 10 ++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/Dge100Controller.cs b/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/Dge100Controller.cs index f157f92d..2780b7b1 100644 --- a/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/Dge100Controller.cs +++ b/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/Dge100Controller.cs @@ -4,7 +4,10 @@ using System.Linq; using System.Text; using Crestron.SimplSharp; using Crestron.SimplSharpPro; -using Crestron.SimplSharpPro.UI; +using Crestron.SimplSharpPro.UI; + +using Crestron.SimplSharpPro.DM; + using Newtonsoft.Json; @@ -18,7 +21,7 @@ namespace PepperDash.Essentials.DM.Endpoints.DGEs /// /// Wrapper class for DGE-100 and DM-DGE-200-C /// - public class Dge100Controller : CrestronGenericBaseDevice, IComPorts, IIROutputPorts, IHasBasicTriListWithSmartObject + public class Dge100Controller : CrestronGenericBaseDevice, IComPorts, IIROutputPorts, IHasBasicTriListWithSmartObject, ICec { private readonly Dge100 _dge; @@ -64,7 +67,12 @@ namespace PepperDash.Essentials.DM.Endpoints.DGEs get { return _dge.NumberOfIROutputPorts; } } + #endregion + + #region ICec Members + public Cec StreamCec { get { return _dge.HdmiOut.StreamCec; } } #endregion + } public class Dge100ControllerFactory : EssentialsDeviceFactory diff --git a/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DmDge200CController.cs b/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DmDge200CController.cs index 26c1af03..6aa153c5 100644 --- a/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DmDge200CController.cs +++ b/essentials-framework/Essentials DM/Essentials_DM/Endpoints/DGEs/DmDge200CController.cs @@ -13,13 +13,15 @@ using PepperDash.Essentials.Core; using PepperDash.Essentials.Core.Config; using Crestron.SimplSharpPro.DeviceSupport; +using Crestron.SimplSharpPro.DM; + namespace PepperDash.Essentials.DM.Endpoints.DGEs { /// /// Wrapper class for DGE-100 and DM-DGE-200-C /// - public class DmDge200CController : CrestronGenericBaseDevice, IComPorts, IIROutputPorts, - IHasBasicTriListWithSmartObject, IRoutingInputsOutputs + public class DmDge200CController : CrestronGenericBaseDevice, IComPorts, IIROutputPorts, + IHasBasicTriListWithSmartObject, IRoutingInputsOutputs, ICec { private readonly DmDge200C _dge; @@ -95,6 +97,10 @@ namespace PepperDash.Essentials.DM.Endpoints.DGEs #endregion + #region ICec Members + public Cec StreamCec { get { return _dge.HdmiOut.StreamCec; } } + #endregion + } public class DmDge200CControllerFactory : EssentialsDeviceFactory