From 577e111f26ffa5bc909237a0628d08cbf49c80d6 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 8 May 2024 08:37:24 -0500 Subject: [PATCH] feat: add properties to control when sources show --- .../Devices/SourceListItem.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs b/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs index 491f76a9..3f770f91 100644 --- a/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs +++ b/src/PepperDash.Essentials.Core/Devices/SourceListItem.cs @@ -144,6 +144,18 @@ namespace PepperDash.Essentials.Core [JsonProperty("isAudioSource")] public bool IsAudioSource { get; set; } + /// + /// Hide source on UI when Avanced Sharing is enabled + /// + [JsonProperty("disableAdvancedRouting")] + public bool DisableAdvancedRouting { get; set; } + + /// + /// Hide source on UI when Simpl Sharing is enabled + /// + [JsonProperty("disableSimpleRouting")] + public bool DisableSimpleRouting { get; set; } + public SourceListItem() { Icon = "Blank";