mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-25 02:14:56 +00:00
Adding DualDisplay to build methods
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user