Files
Ayay/SHH.CameraSdk/Controllers/Dto/PtzControlDto.cs

24 lines
746 B
C#
Raw Permalink 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.
using SHH.CameraSdk.HikFeatures;
namespace SHH.CameraSdk;
public class PtzControlDto
{
/// <summary> 目标设备ID </summary>
public long DeviceId { get; set; }
/// <summary> 云台动作(上/下/左/右/变焦等,对应 PtzAction 枚举) </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public PtzAction Action { get; set; }
/// <summary>
/// 仅用于手动模式true=停止, false=开始
/// </summary>
public bool Stop { get; set; }
/// <summary> 控制速度1-8默认4 </summary>
public int Speed { get; set; } = 4;
/// <summary> 点动模式:动作持续时长(毫秒),>0 时启用点动 </summary>
public int Duration { get; set; } = 0;
}