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.
58 lines
1.1 KiB
58 lines
1.1 KiB
2 years ago
|
namespace EC.Util.CameraSDK;
|
||
|
|
||
|
public abstract class ICameraSDK
|
||
|
{
|
||
|
#region Attr
|
||
|
|
||
|
protected CameraInfo CameraInfo { get; set; }
|
||
|
|
||
|
#endregion Attr
|
||
|
|
||
|
public ICameraSDK(CameraInfo cameraInfo)
|
||
|
{
|
||
|
CameraInfo = cameraInfo;
|
||
|
}
|
||
|
|
||
|
#region Base Method
|
||
|
|
||
|
/// <summary>
|
||
|
/// 初始化资源
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public abstract bool Init();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 释放资源
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public abstract bool Destory();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 连接是否成功
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public abstract bool ConnectSuccess();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 构建异常
|
||
|
/// </summary>
|
||
|
public abstract void BuildException();
|
||
|
|
||
|
#endregion Base Method
|
||
|
|
||
|
#region Main Method
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取 ptz
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public abstract PtzInfo GetPtzInfo();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取 ptz
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public abstract bool TryGetPtzInfo(out PtzInfo ptzInfo);
|
||
|
|
||
|
#endregion Main Method
|
||
|
}
|