namespace DeviceAgent; public class AgentConfig { /// /// 服务器地址 /// public string ServerUrl { get; set; } = "http://localhost:5000"; /// /// 上报间隔(秒) /// public int ReportIntervalSeconds { get; set; } = 60; /// /// Agent 密钥(用于身份验证) /// public string AgentKey { get; set; } = ""; /// /// 是否启用屏幕截图(定时上传) /// public bool ScreenCaptureEnabled { get; set; } = false; /// /// 屏幕截图间隔(秒) /// public int ScreenCaptureIntervalSeconds { get; set; } = 5; /// /// 屏幕截图质量 (1-100) /// public int ScreenCaptureQuality { get; set; } = 50; /// /// 屏幕截图最大宽度(像素) /// public int ScreenCaptureMaxWidth { get; set; } = 800; // ========== 实时屏幕流配置 ========== /// /// 是否启用实时屏幕流 /// public bool ScreenStreamEnabled { get; set; } = true; /// /// 屏幕流 WebSocket 端口 /// public int ScreenStreamPort { get; set; } = 9100; /// /// 屏幕流帧率 (FPS) /// public int ScreenStreamFps { get; set; } = 10; /// /// 屏幕流质量 (1-100) /// public int ScreenStreamQuality { get; set; } = 60; /// /// 屏幕流最大宽度(像素) /// public int ScreenStreamMaxWidth { get; set; } = 1280; // ========== 远程桌面配置 ========== /// /// 是否在启动时自动开启远程桌面 /// public bool EnableRemoteDesktopOnStart { get; set; } = true; }