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

22 lines
585 B
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.
using SHH.CameraSdk.HikFeatures;
namespace SHH.CameraSdk;
public class PtzControlDto
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public PtzAction Action { get; set; }
/// <summary>
/// 仅用于手动模式true=停止, false=开始
/// </summary>
public bool Stop { get; set; }
public int Speed { get; set; } = 4;
/// <summary>
/// [新增] 点动耗时 (毫秒)
/// 如果此值 > 0则忽略 Stop 参数,执行 "开始 -> 等待 -> 停止" 的原子操作
/// </summary>
public int Duration { get; set; } = 0;
}