Files
SecMPS/gateway/src/IntegrationGateway.Core/Models/AdapterCapabilities.cs
T

30 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace IntegrationGateway.Core.Models;
/// <summary>
/// 适配器能力声明。每个适配器在注册时声明自己实现了哪些能力接口。
/// 网关通过此声明判断适配器支持的操作,将请求路由到正确的适配器。
/// </summary>
public class AdapterCapabilities
{
/// <summary>是否支持自有对象树(如 MC4.0 的区域→设备层级树)</summary>
public bool HasObjectTree { get; set; }
/// <summary>是否支持扁平设备列表(如 Owl 的 NVR 列表)</summary>
public bool HasFlatDevices { get; set; }
/// <summary>是否支持实时点位值读取</summary>
public bool HasPoints { get; set; }
/// <summary>是否支持视频取流</summary>
public bool HasStreams { get; set; }
/// <summary>是否支持云台控制(PTZ</summary>
[Obsolete("Use HasStreams for PTZ capability check")]
public bool HasPtz { get; set; }
/// <summary>是否支持录像回放</summary>
public bool HasRecordings { get; set; }
/// <summary>是否支持告警查询与处理</summary>
public bool HasAlarms { get; set; }
/// <summary>是否接受反向控制(点位写值)</summary>
[Obsolete("Check IAcceptsControl interface directly")]
public bool AcceptsControl { get; set; }
/// <summary>是否接受元数据回写(如设备改名)</summary>
public bool AcceptsMetadataPush { get; set; }
}