Adding DualDisplay to build methods

This commit is contained in:
Andrew Welker
2020-07-17 15:42:19 -06:00
parent d6a6791e7b
commit ffaff91ed2
5 changed files with 105 additions and 54 deletions

View File

@@ -46,14 +46,14 @@ namespace PepperDash.Essentials.Core.Config
public Dictionary<string, DestinationListItem> GetDestinationListForKey(string key)
{
if (string.IsNullOrEmpty(key) || !SourceLists.ContainsKey(key))
if (string.IsNullOrEmpty(key) || !DestinationLists.ContainsKey(key))
return null;
return DestinationLists[key];
}
/// <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, returns null
/// </summary>
/// <param name="key">Key of desired device</param>
/// <returns></returns>

View File

@@ -18,8 +18,7 @@ namespace PepperDash.Essentials.Core.Rooms.Config
{
var typeName = roomConfig.Type.ToLower();
EssentialsRoomBase rm;
if (typeName == "huddle")
if (typeName == "huddle")
{
var huddle = new EssentialsHuddleSpaceRoom(roomConfig);
@@ -27,22 +26,22 @@ namespace PepperDash.Essentials.Core.Rooms.Config
}
if (typeName == "huddlevtc1")
{
rm = new EssentialsHuddleVtc1Room(roomConfig);
EssentialsRoomBase rm = new EssentialsHuddleVtc1Room(roomConfig);
return rm;
}
if (typeName == "ddvc01Bridge")
{
return new Device(roomConfig.Key, roomConfig.Name); // placeholder device that does nothing.
}
if (typeName != "dualdisplay")
{
return null;
}
//rm = new EssentialsDualDisplayRoom();
return null;
var dualDisplay = new EssentialsDualDisplayRoom(roomConfig);
return dualDisplay;
}
/// <summary>