mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
feat: updates to IEssentialsRoom for CameraListKey and adds helper method to get camera list from config
This commit is contained in:
@@ -88,6 +88,17 @@ namespace PepperDash.Essentials.Core.Config
|
|||||||
return AudioControlPointLists[key];
|
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>
|
/// <summary>
|
||||||
/// Checks Devices for an item with a Key that matches and returns it if found. Otherwise, retunes null
|
/// Checks Devices for an item with a Key that matches and returns it if found. Otherwise, retunes null
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ namespace PepperDash.Essentials.Core
|
|||||||
|
|
||||||
string AudioControlPointListKey { get; }
|
string AudioControlPointListKey { get; }
|
||||||
|
|
||||||
|
string CameraListKey { get; }
|
||||||
|
|
||||||
SecondsCountdownTimer ShutdownPromptTimer { get; }
|
SecondsCountdownTimer ShutdownPromptTimer { get; }
|
||||||
int ShutdownPromptSeconds { get; }
|
int ShutdownPromptSeconds { get; }
|
||||||
int ShutdownVacancySeconds { get; }
|
int ShutdownVacancySeconds { get; }
|
||||||
|
|||||||
Reference in New Issue
Block a user