diff --git a/src/PepperDash.Essentials.Core/Room/EssentialsRoomBase.cs b/src/PepperDash.Essentials.Core/Room/EssentialsRoomBase.cs index 413e0ffc..7359c0fa 100644 --- a/src/PepperDash.Essentials.Core/Room/EssentialsRoomBase.cs +++ b/src/PepperDash.Essentials.Core/Room/EssentialsRoomBase.cs @@ -59,28 +59,81 @@ namespace PepperDash.Essentials.Core /// public IMobileControlRoomMessenger MobileControlRoomBridge { get; private set; } + protected const string _defaultListKey = "default"; + /// /// The config name of the source list /// /// - protected string _SourceListKey; + private string _sourceListKey; public string SourceListKey { get { - return _SourceListKey; - } - private set - { - if (value != _SourceListKey) + if(string.IsNullOrEmpty(_sourceListKey)) { - _SourceListKey = value; + return _defaultListKey; + } + else + { + return _sourceListKey; + } + } + protected set + { + if (value != _sourceListKey) + { + _sourceListKey = value; } } } - public string DestinationListKey { get; private set; } + private string _destinationListKey; + public string DestinationListKey + { + get + { + if (string.IsNullOrEmpty(_destinationListKey)) + { + return _defaultListKey; + } + else + { + return _destinationListKey; + } + } + protected set + { + if (value != _destinationListKey) + { + _destinationListKey = value; + } + } + } + + private string _levelControlListKey; + public string LevelControlListKey + { + get + { + if (string.IsNullOrEmpty(_levelControlListKey)) + { + return _defaultListKey; + } + else + { + return _destinationListKey; + } + } + protected set + { + if (value != _levelControlListKey) + { + _levelControlListKey = value; + } + } + } + - protected const string _defaultSourceListKey = "default"; /// /// Timer used for informing the UIs of a shutdown @@ -192,7 +245,7 @@ namespace PepperDash.Essentials.Core } else { - sourceListKey = _defaultSourceListKey; + sourceListKey = _defaultListKey; } }