You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
449 B
16 lines
449 B
2 years ago
|
namespace EC.Util.CameraSDK;
|
||
|
|
||
|
public class CameraFactory
|
||
|
{
|
||
|
public static ICameraSDK BuildCameraSdk(CameraInfo info)
|
||
|
{
|
||
|
ICameraSDK sdk = (info.Manufactor) switch
|
||
|
{
|
||
|
CameraManufactor.HiK => new HiKSDK(info),
|
||
|
CameraManufactor.DaHua => new DaHuaSDK(info),
|
||
|
CameraManufactor.YuShi => new YuShiSDK(info),
|
||
|
_ => throw new NotSupportedException(),
|
||
|
};
|
||
|
return sdk;
|
||
|
}
|
||
|
}
|