From 1cc37b752173750bd42821eca0a43d61b0ec16e5 Mon Sep 17 00:00:00 2001 From: Trevor Payne Date: Thu, 2 Jun 2022 11:17:54 -0500 Subject: [PATCH] feature:Converted PduOutlets Dictionary to ReadOnlyDictionary feature:Removed redundant OutletCount property --- .../JoinMaps/{BasePduJoinMap.cs => PduJoinMapBase.cs} | 0 .../PepperDashEssentialsBase/Devices/PduInterfaces.cs | 8 ++------ .../PepperDash_Essentials_Core.csproj | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) rename essentials-framework/Essentials Core/PepperDashEssentialsBase/Bridges/JoinMaps/{BasePduJoinMap.cs => PduJoinMapBase.cs} (100%) diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Bridges/JoinMaps/BasePduJoinMap.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Bridges/JoinMaps/PduJoinMapBase.cs similarity index 100% rename from essentials-framework/Essentials Core/PepperDashEssentialsBase/Bridges/JoinMaps/BasePduJoinMap.cs rename to essentials-framework/Essentials Core/PepperDashEssentialsBase/Bridges/JoinMaps/PduJoinMapBase.cs diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Devices/PduInterfaces.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Devices/PduInterfaces.cs index 4cdda3c6..0f3b3fbf 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Devices/PduInterfaces.cs +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Devices/PduInterfaces.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Crestron.SimplSharp; using PepperDash.Core; using PepperDash.Essentials.Core; @@ -28,12 +29,7 @@ namespace PepperDash_Essentials_Core.Devices /// /// Collection of IPduOutlets /// - Dictionary PduOutlets { get; } - - /// - /// Count of PduOutlets - /// - int PduOutletsCount { get; } + ReadOnlyDictionary PduOutlets { get; } } } \ No newline at end of file diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj b/essentials-framework/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj index 2847b663..c0903526 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj @@ -123,7 +123,7 @@ - +