namespace SHH.CameraService;

/// <summary>
/// 抽象指令处理器接口
/// </summary>
public interface ICommandHandler
{
    /// <summary>
    /// 该处理器支持的 Action 名称 (如 "AddCamera", "Reboot")
    /// </summary>
    string ActionName { get; }

    /// <summary>
    /// 执行指令逻辑
    /// </summary>
    /// <param name="payload">指令携带的数据 (JSON JToken)</param>
    Task ExecuteAsync(Newtonsoft.Json.Linq.JToken payload);
}