Camera Information System
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.
 
 
 
 

54 lines
1.3 KiB

using Cis.Application.Cb;
using EC.Helper.Onvif;
namespace Cis.Application.Core.Component.Onvif;
public interface IOnvifServer
{
#region Base Method
/// <summary>
/// 注册 onvifClient
/// </summary>
/// <param name="camera"></param>
/// <returns></returns>
public bool Register(CbCamera camera);
/// <summary>
/// 注册 onvifClient(异步)
/// </summary>
/// <param name="camera"></param>
/// <returns></returns>
public Task<bool> RegisterAsync(CbCamera camera);
/// <summary>
/// 注销 onvifClient
/// </summary>
/// <param name="cameraId"></param>
/// <returns></returns>
public bool Delete(long cameraId);
/// <summary>
/// 是否存在 onvifClient
/// </summary>
/// <param name="cameraId"></param>
/// <returns></returns>
public bool IsExists(long cameraId);
/// <summary>
/// 获取 onvifClient
/// </summary>
/// <param name="cameraId"></param>
/// <returns></returns>
public OnvifClient Get(long cameraId);
/// <summary>
/// 获取 onvifClient
/// </summary>
/// <param name="cameraId"></param>
/// <param name="client"></param>
/// <returns></returns>
public bool TryGet(long cameraId, out OnvifClient client);
#endregion Base Method
}