From a6cd9a0571fb15e50a4f4129934c57208dd43bf7 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 22 Jul 2025 14:56:28 -0500 Subject: [PATCH 1/2] feat: add destination and source port key properties for advanced routing --- .../Devices/DestinationListItem.cs | 7 +++++++ src/PepperDash.Essentials.Core/Devices/SourceListItem.cs | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs b/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs index c0837401..788714b7 100644 --- a/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs +++ b/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs @@ -113,5 +113,12 @@ namespace PepperDash.Essentials.Core /// [JsonProperty("supportsUsb")] public bool SupportsUsb { get; set; } + + /// + /// The key of the destination port associated with this source item + /// This is used to identify the specific port on the destination device that this item refers to for advanced routing + /// + [JsonProperty("destinationPortKey")] + public string DestinationPortKey { get; set; } } } \ No newline at end of file diff --git a/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs b/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs index 3d08a218..fe0bde9d 100644 --- a/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs +++ b/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs @@ -180,6 +180,13 @@ namespace PepperDash.Essentials.Core [JsonProperty("supportsUsb")] public bool SupportsUsb { get; set; } + /// + /// The key of the source port associated with this source item + /// This is used to identify the specific port on the source device that this item refers to for advanced routing + /// + [JsonProperty("sourcePortKey")] + public string SourcePortKey { get; set; } + /// /// Default constructor for SourceListItem, initializes the Icon to "Blank" From 799d4c127cce5c8c416db72ee0be981844331cdc Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Tue, 22 Jul 2025 14:02:01 -0600 Subject: [PATCH 2/2] Update src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs b/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs index 788714b7..5a66c0b3 100644 --- a/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs +++ b/src/PepperDash.Essentials.Core/Devices/DestinationListItem.cs @@ -115,7 +115,7 @@ namespace PepperDash.Essentials.Core public bool SupportsUsb { get; set; } /// - /// The key of the destination port associated with this source item + /// The key of the destination port associated with this destination item /// This is used to identify the specific port on the destination device that this item refers to for advanced routing /// [JsonProperty("destinationPortKey")]