mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-12 03:05:01 +00:00
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
using Crestron.SimplSharpPro;
|
|
using Crestron.SimplSharpPro.DeviceSupport;
|
|
|
|
using PepperDash.Core;
|
|
using PepperDash.Essentials.Core;
|
|
using PepperDash.Essentials.Core.Routing;
|
|
|
|
namespace PepperDash.Essentials.Devices.Common
|
|
{
|
|
public class GenericSource : Device, IUiDisplayInfo, IRoutingOutputs, IUsageTracking
|
|
{
|
|
|
|
public uint DisplayUiType { get { return DisplayUiConstants.TypeNoControls; } }
|
|
|
|
public GenericSource(string key, string name)
|
|
: base(key, name)
|
|
{
|
|
|
|
AnyOut = new RoutingOutputPort(RoutingPortNames.AnyOut, eRoutingSignalType.AudioVideo,
|
|
eRoutingPortConnectionType.Hdmi, null, this);
|
|
OutputPorts = new RoutingPortCollection<RoutingOutputPort> { AnyOut };
|
|
}
|
|
|
|
#region IRoutingOutputs Members
|
|
|
|
public RoutingOutputPort AnyOut { get; private set; }
|
|
public RoutingPortCollection<RoutingOutputPort> OutputPorts { get; private set; }
|
|
|
|
#endregion
|
|
|
|
#region IUsageTracking Members
|
|
|
|
public UsageTracking UsageTracker { get; set; }
|
|
|
|
#endregion
|
|
}
|
|
} |