From 2b4dc8d4351e6a7c5e6cbbb61c8e55ba40971df0 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 8 May 2024 08:37:25 -0500 Subject: [PATCH] feat: add 2 new routing interfaces to allow for getting feedback for routing --- .../Routing/IRoutingSinkWithFeedback.cs | 26 +++++++++++++++++++ .../Routing/IRoutingWithFeedback.cs | 15 +++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/PepperDash.Essentials.Core/Routing/IRoutingSinkWithFeedback.cs create mode 100644 src/PepperDash.Essentials.Core/Routing/IRoutingWithFeedback.cs diff --git a/src/PepperDash.Essentials.Core/Routing/IRoutingSinkWithFeedback.cs b/src/PepperDash.Essentials.Core/Routing/IRoutingSinkWithFeedback.cs new file mode 100644 index 00000000..c7e99746 --- /dev/null +++ b/src/PepperDash.Essentials.Core/Routing/IRoutingSinkWithFeedback.cs @@ -0,0 +1,26 @@ +using PepperDash.Essentials.Core.Routing; +using System; +using System.Collections.Generic; + +namespace PepperDash.Essentials.Core +{ + /// + /// For fixed-source endpoint devices + /// + public interface IRoutingSinkWithFeedback : IRoutingSinkWithSwitching + { + RouteSwitchDescriptor CurrentRoute { get; } + + event EventHandler InputChanged; + } + +/* /// + /// For fixed-source endpoint devices + /// + public interface IRoutingSinkWithFeedback : IRoutingSinkWithSwitching + { + RouteSwitchDescriptor CurrentRoute { get; } + + event EventHandler InputChanged; + }*/ +} \ No newline at end of file diff --git a/src/PepperDash.Essentials.Core/Routing/IRoutingWithFeedback.cs b/src/PepperDash.Essentials.Core/Routing/IRoutingWithFeedback.cs new file mode 100644 index 00000000..c4abf0c6 --- /dev/null +++ b/src/PepperDash.Essentials.Core/Routing/IRoutingWithFeedback.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using System; + +namespace PepperDash.Essentials.Core +{ + /// + /// Defines an IRouting with a feedback event + /// + public interface IRoutingWithFeedback : IRouting + { + List CurrentRoutes { get; } + + event EventHandler RoutingChanged; + } +} \ No newline at end of file