fix: implement DestinationListKey on EssentialsRoomBase

This commit is contained in:
Andrew Welker
2024-03-08 23:06:26 -06:00
parent 285d87d8ac
commit 3b55d6af93

View File

@@ -18,8 +18,6 @@ namespace PepperDash.Essentials.Core
/// </summary> /// </summary>
public abstract class EssentialsRoomBase : ReconfigurableDevice, IEssentialsRoom public abstract class EssentialsRoomBase : ReconfigurableDevice, IEssentialsRoom
{ {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@@ -79,6 +77,8 @@ namespace PepperDash.Essentials.Core
} }
} }
public string DestinationListKey { get; private set; }
protected const string _defaultSourceListKey = "default"; protected const string _defaultSourceListKey = "default";
/// <summary> /// <summary>
@@ -194,6 +194,14 @@ namespace PepperDash.Essentials.Core
} }
} }
protected void SetDestinationListKey(string destinationListKey)
{
if (!string.IsNullOrEmpty(destinationListKey))
{
DestinationListKey = destinationListKey;
}
}
/// <summary> /// <summary>
/// If mobile control is enabled, sets the appropriate properties /// If mobile control is enabled, sets the appropriate properties
/// </summary> /// </summary>