namespace SHH.Contracts
{
    /// <summary>
    /// [控制面] 设备状态变更通知包
    /// </summary>
    public class StatusEventPayload
    {
        /// <summary>摄像头ID</summary>
        public string CameraId { get; set; } = string.Empty;

        /// <summary>IP地址</summary>
        public string IpAddress { get; set; } = string.Empty;

        /// <summary>true: 上线/活跃, false: 离线/超时</summary>
        public bool IsOnline { get; set; }

        /// <summary>变更原因 (e.g. "Ping Success", "Frame Timeout")</summary>
        public string Reason { get; set; } = string.Empty;

        /// <summary>时间戳</summary>
        public long Timestamp { get; set; }
    }
}