mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
fix: remove generics from matrix routing interfaces
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Routing
|
namespace PepperDash.Essentials.Core.Routing
|
||||||
{
|
{
|
||||||
public interface IMatrixRouting<TInput, TOutput> where TInput : IRoutingInputSlot where TOutput : IRoutingOutputSlot<TInput>
|
public interface IMatrixRouting
|
||||||
{
|
{
|
||||||
Dictionary<string, TInput> InputSlots { get; }
|
Dictionary<string, IRoutingInputSlot> InputSlots { get; }
|
||||||
Dictionary<string, TOutput> OutputSlots { get; }
|
Dictionary<string, IRoutingOutputSlot> OutputSlots { get; }
|
||||||
|
|
||||||
void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType type);
|
void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +1,7 @@
|
|||||||
using System;
|
namespace PepperDash.Essentials.Core.Routing
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Routing
|
|
||||||
{
|
{
|
||||||
public interface IRoutingInputSlot: IRoutingSlot, IOnline, IVideoSync
|
public interface IRoutingInputSlot: IRoutingSlot, IOnline, IVideoSync
|
||||||
{
|
{
|
||||||
string TxDeviceKey { get; }
|
string TxDeviceKey { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class RoutingInputSlotBase : IRoutingInputSlot
|
|
||||||
{
|
|
||||||
public abstract string TxDeviceKey { get; }
|
|
||||||
public abstract int SlotNumber { get; }
|
|
||||||
public abstract eRoutingSignalType SupportedSignalTypes { get; }
|
|
||||||
public abstract string Name { get; }
|
|
||||||
public abstract BoolFeedback IsOnline { get; }
|
|
||||||
public abstract bool VideoSyncDetected { get; }
|
|
||||||
public abstract string Key { get; }
|
|
||||||
|
|
||||||
public abstract event EventHandler VideoSyncChanged;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,24 +3,12 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Routing
|
namespace PepperDash.Essentials.Core.Routing
|
||||||
{
|
{
|
||||||
public interface IRoutingOutputSlot<TInput> : IRoutingSlot where TInput: IRoutingInputSlot
|
public interface IRoutingOutputSlot : IRoutingSlot
|
||||||
{
|
{
|
||||||
event EventHandler OutputSlotChanged;
|
event EventHandler OutputSlotChanged;
|
||||||
|
|
||||||
string RxDeviceKey { get; }
|
string RxDeviceKey { get; }
|
||||||
|
|
||||||
Dictionary<eRoutingSignalType, TInput> CurrentRoutes { get; }
|
Dictionary<eRoutingSignalType, IRoutingInputSlot> CurrentRoutes { get; }
|
||||||
}
|
|
||||||
|
|
||||||
public abstract class RoutingOutputSlotBase<TInput> : IRoutingOutputSlot<TInput> where TInput: IRoutingInputSlot
|
|
||||||
{
|
|
||||||
public abstract string RxDeviceKey { get; }
|
|
||||||
public abstract Dictionary<eRoutingSignalType, TInput> CurrentRoutes { get; }
|
|
||||||
public abstract int SlotNumber { get; }
|
|
||||||
public abstract eRoutingSignalType SupportedSignalTypes { get; }
|
|
||||||
public abstract string Name { get; }
|
|
||||||
public abstract string Key { get; }
|
|
||||||
|
|
||||||
public abstract event EventHandler OutputSlotChanged;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user