From ad122bf39f57b4a260e520b19008c13536bbb385 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 10 Apr 2024 09:35:18 -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