mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-24 18:04:57 +00:00
Major update to remove eRoutingSignalType.AudioVideo in favor of bitmasked values and adding UsbOutput and UsbInput types. Updated all affected routing ports and ExecuteSwitch method calls. Need to review and test routing to ensure bitwise operators are all correct.
36 lines
989 B
C#
36 lines
989 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
using PepperDash.Core;
|
|
|
|
namespace PepperDash.Essentials.Core.Routing
|
|
{
|
|
public class DummyRoutingInputsDevice : Device, IRoutingSource
|
|
{
|
|
/// <summary>
|
|
/// A single output port, backplane, audioVideo
|
|
/// </summary>
|
|
public RoutingOutputPort AudioVideoOutputPort { get; private set; }
|
|
|
|
/// <summary>
|
|
/// contains the output port
|
|
/// </summary>
|
|
public RoutingPortCollection<RoutingOutputPort> OutputPorts
|
|
{
|
|
get { return new RoutingPortCollection<RoutingOutputPort>() { AudioVideoOutputPort }; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// constructor
|
|
/// </summary>
|
|
/// <param name="key">key for special device</param>
|
|
public DummyRoutingInputsDevice(string key) : base(key)
|
|
{
|
|
AudioVideoOutputPort = new RoutingOutputPort("internal", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.BackplaneOnly,
|
|
null, this, true);
|
|
}
|
|
}
|
|
} |