diff --git a/src/PepperDash.Essentials.Core/Config/BasicConfig.cs b/src/PepperDash.Essentials.Core/Config/BasicConfig.cs index ca15680c..623aacc1 100644 --- a/src/PepperDash.Essentials.Core/Config/BasicConfig.cs +++ b/src/PepperDash.Essentials.Core/Config/BasicConfig.cs @@ -58,8 +58,8 @@ namespace PepperDash.Essentials.Core.Config /// /// Retrieves a DestinationListItem based on the key /// - /// key of the item to retrieve - /// DestinationListItem if the key exists, null otherwise + /// key of the list to retrieve + /// DestinationList if the key exists, null otherwise public Dictionary GetDestinationListForKey(string key) { if (string.IsNullOrEmpty(key) || !DestinationLists.ContainsKey(key)) @@ -70,6 +70,19 @@ namespace PepperDash.Essentials.Core.Config return DestinationLists[key]; } + /// + /// Retrieves a LevelControlList based on the key + /// + /// key of the list to retrieve + /// LevelControlList if the key exists, null otherwise + public Dictionary GetLevelControlListForKey(string key) + { + if (string.IsNullOrEmpty(key) || !LevelControlLists.ContainsKey(key)) + return null; + + return LevelControlLists[key]; + } + /// /// Checks Devices for an item with a Key that matches and returns it if found. Otherwise, retunes null ///