mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 21:16:48 +00:00
Adding DualDisplay to build methods
This commit is contained in:
parent
d6a6791e7b
commit
ffaff91ed2
5 changed files with 105 additions and 54 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue