namespace YD_TrainingCompetition_Api.Options;
public sealed class HikvisionOptions
{
public const string SectionName = "Hikvision";
///
/// 是否启用海康威视 SDK 接入
///
public bool Enabled { get; set; } = false;
///
/// SDK 日志目录
///
public string SdkLogPath { get; set; } = "C:\\SdkLog\\";
///
/// 报警数据图片分离:0-不分离(COMM_VCA_ALARM),1-分离(COMM_ISAPI_ALARM)
///
public byte AlarmJsonPictureSeparate { get; set; } = 1;
///
/// 报警存储最大条数
///
public int MaxAlarmRecords { get; set; } = 200;
///
/// 摄像头列表
///
public List Cameras { get; set; } = new();
}
public sealed class CameraConfigItem
{
///
/// 设备唯一标识
///
public string DeviceId { get; set; } = string.Empty;
///
/// 摄像头 IP 地址
///
public string Ip { get; set; } = string.Empty;
///
/// 端口号
///
public ushort Port { get; set; } = 8000;
///
/// 用户名
///
public string UserName { get; set; } = "admin";
///
/// 密码
///
public string Password { get; set; } = string.Empty;
///
/// 通道号
///
public int Channel { get; set; } = 1;
///
/// 是否启用
///
public bool Enabled { get; set; } = true;
}