feat(essentials): Adds IEnvironmentalControls interface and updates some room config properties

This commit is contained in:
Neil Dorin
2021-12-01 12:40:17 -07:00
parent 8945398cd7
commit e152250363
4 changed files with 46 additions and 1 deletions

View File

@@ -147,6 +147,24 @@ namespace PepperDash.Essentials.Room.Config
[JsonProperty("helpMessage")]
public string HelpMessage { get; set; }
/// <summary>
/// Read this value to get the help message. It checks for the old and new config format.
/// </summary>
public string HelpMessageForDisplay
{
get
{
if(Help != null && !string.IsNullOrEmpty(Help.Message))
{
return Help.Message;
}
else
{
return HelpMessage;
}
}
}
[JsonProperty("environment")]
public EssentialsEnvironmentPropertiesConfig Environment { get; set; }