fixes to get it to load

This commit is contained in:
Andrew Welker
2020-12-07 16:32:06 -07:00
parent 43d7fab04d
commit 9c4650b4af
4 changed files with 35 additions and 22 deletions

View File

@@ -31,7 +31,7 @@ namespace PepperDash.Essentials.Room.Config
{
return new EssentialsHuddleVtc1Room(roomConfig);
}
if (typeName == "ddvc01Bridge")
if (typeName == "ddvc01bridge")
{
return new Device(roomConfig.Key, roomConfig.Name); // placeholder device that does nothing.
}
@@ -40,7 +40,7 @@ namespace PepperDash.Essentials.Room.Config
return new EssentialsDualDisplayRoom(roomConfig);
}
return typeName != "techRoom" ? null : new EssentialsTechRoom(roomConfig);
return typeName != "techroom" ? null : new EssentialsTechRoom(roomConfig);
}
/// <summary>

View File

@@ -1,22 +1,33 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace PepperDash.Essentials.Room.Config
{
public class EssentialsTechRoomConfig
{
[JsonProperty("displays")]
public List<string> Displays;
[JsonProperty("tuners")]
public List<string> Tuners;
public string ScheduleProviderKey;
[JsonProperty("userPin")]
public string UserPin;
[JsonProperty("techPin")]
public string TechPin;
[JsonProperty("presetFileName")]
public string PresetsFileName;
public List<ScheduledEventConfig> RoomScheduledEvents;
[JsonProperty("scheduledEvents")]
public List<ScheduledEventConfig> ScheduledEvents;
public EssentialsTechRoomConfig()
{
Displays = new List<string>();
Tuners = new List<string>();
RoomScheduledEvents = new List<ScheduledEventConfig>();
ScheduledEvents = new List<ScheduledEventConfig>();
}
}
}