mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +00:00
Finishes converting all existing types to new DeviceFactory mechanism. #106
This commit is contained in:
parent
2170a79399
commit
4f6ae386b4
29 changed files with 626 additions and 334 deletions
|
|
@ -1843,4 +1843,19 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||
}
|
||||
}
|
||||
|
||||
public class CiscoSparkCodecFactory : EssentialsDeviceFactory<CiscoSparkCodec>
|
||||
{
|
||||
public CiscoSparkCodecFactory()
|
||||
{
|
||||
TypeNames = new List<string>() { "ciscospark", "ciscowebex", "ciscowebexpro", "ciscoroomkit" };
|
||||
}
|
||||
|
||||
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
||||
{
|
||||
Debug.Console(1, "Factory Attempting to create new Cisco Codec Device");
|
||||
var comm = CommFactory.CreateCommForDevice(dc);
|
||||
return new VideoCodec.Cisco.CiscoSparkCodec(dc, comm);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -770,4 +770,19 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||
_AutoAnswerEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
public class MockVCFactory : EssentialsDeviceFactory<MockVC>
|
||||
{
|
||||
public MockVCFactory()
|
||||
{
|
||||
TypeNames = new List<string>() { "mockvc" };
|
||||
}
|
||||
|
||||
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
||||
{
|
||||
Debug.Console(1, "Factory Attempting to create new MockVC Device");
|
||||
return new VideoCodec.MockVC(dc);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1676,4 +1676,20 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||
InitialSyncComplete = false;
|
||||
}
|
||||
}
|
||||
|
||||
public class ZoomRoomFactory : EssentialsDeviceFactory<ZoomRoom>
|
||||
{
|
||||
public ZoomRoomFactory()
|
||||
{
|
||||
TypeNames = new List<string>() { "zoomroom" };
|
||||
}
|
||||
|
||||
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
||||
{
|
||||
Debug.Console(1, "Factory Attempting to create new ZoomRoom Device");
|
||||
var comm = CommFactory.CreateCommForDevice(dc);
|
||||
return new VideoCodec.ZoomRoom.ZoomRoom(dc, comm);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue