feat: updates to IEssentialsRoom for CameraListKey and adds helper method to get camera list from config

This commit is contained in:
Neil Dorin
2024-06-25 17:15:45 -06:00
parent 9a6209f50a
commit ddc2491664
2 changed files with 13 additions and 0 deletions

View File

@@ -88,6 +88,17 @@ namespace PepperDash.Essentials.Core.Config
return AudioControlPointLists[key];
}
/// <summary>
/// Checks CameraLists for a given list and returns it if found. Otherwise, returns null
/// </summary>
public Dictionary<string, CameraListItem> GetCameraListForKey(string key)
{
if (string.IsNullOrEmpty(key) || !CameraLists.ContainsKey(key))
return null;
return CameraLists[key];
}
/// <summary>
/// Checks Devices for an item with a Key that matches and returns it if found. Otherwise, retunes null
/// </summary>