mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-27 19:34:51 +00:00
chagnes InputPorts and OutputPorts to not return a new collection every time they are accessed
36 lines
1.4 KiB
C#
36 lines
1.4 KiB
C#
using Crestron.SimplSharp.Ssh;
|
|
using Crestron.SimplSharpPro;
|
|
using Crestron.SimplSharpPro.DM.Endpoints.Receivers;
|
|
|
|
using PepperDash.Essentials.Core;
|
|
|
|
namespace PepperDash.Essentials.DM
|
|
{
|
|
public class HDBaseTRxController : DmHdBaseTControllerBase, IRoutingInputsOutputs,
|
|
IComPorts
|
|
{
|
|
public RoutingInputPort DmIn { get; private set; }
|
|
public RoutingOutputPort HDBaseTSink { get; private set; }
|
|
|
|
public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; }
|
|
|
|
public RoutingPortCollection<RoutingOutputPort> OutputPorts { get; private set; }
|
|
|
|
public HDBaseTRxController(string key, string name, HDRx3CB rmc)
|
|
: base(key, name, rmc)
|
|
{
|
|
DmIn = new RoutingInputPort(DmPortName.DmIn, eRoutingSignalType.AudioVideo,
|
|
eRoutingPortConnectionType.DmCat, 0, this);
|
|
HDBaseTSink = new RoutingOutputPort(DmPortName.HdmiOut, eRoutingSignalType.AudioVideo,
|
|
eRoutingPortConnectionType.Hdmi, null, this) {Port = Rmc};
|
|
|
|
InputPorts = new RoutingPortCollection<RoutingInputPort> {DmIn};
|
|
OutputPorts = new RoutingPortCollection<RoutingOutputPort> {HDBaseTSink};
|
|
}
|
|
|
|
#region IComPorts Members
|
|
public CrestronCollection<ComPort> ComPorts { get { return Rmc.ComPorts; } }
|
|
public int NumberOfComPorts { get { return Rmc.NumberOfComPorts; } }
|
|
#endregion
|
|
}
|
|
} |