namespace EC.Helper.CameraSDK; public abstract class ICameraSDK { #region Attr protected CameraInfo CameraInfo { get; set; } #endregion Attr public ICameraSDK(CameraInfo cameraInfo) { CameraInfo = cameraInfo; } #region Base Method /// /// 初始化资源 /// /// public abstract bool Init(); /// /// 释放资源 /// /// public abstract bool Destory(); /// /// 连接是否成功 /// /// public abstract bool ConnectSuccess(); /// /// 处理异常 /// public abstract void BuildException(); #endregion Base Method #region Main Method /// /// 获取 ptz /// /// public abstract PtzInfo GetPtzInfo(); #endregion Main Method }