namespace CoreAgent.Domain.Models.System; /// /// 应用程序配置 /// public class AppSettings { /// /// 临时目录路径 /// public string TempDirectory { get; set; } = "/tmp/"; /// /// RAN配置目录路径 /// public string RanConfigDirectory { get; set; } = "/root/enb/config/config_ran/"; /// /// MME配置目录路径 /// public string MmeConfigDirectory { get; set; } = "/root/mme/config/"; /// /// WebSocket JavaScript文件路径 /// public string WebSocketJsPath { get; set; } = "/root/enb/doc/ws.js"; /// /// WebSocket 命令配置 /// public WebSocketCommandSettings WebSocketCommands { get; set; } = new(); /// /// 网络状态检查超时时间(秒) /// public int NetworkStatusCheckTimeout { get; set; } = 30; } /// /// WebSocket 命令配置 /// public class WebSocketCommandSettings { /// /// 状态检查命令 /// public WebSocketCommand Stats { get; set; } = new() { Message = "stats" }; public WebSocketCommand Quit { get; set; } = new() { Message = "quit" }; } /// /// WebSocket 命令 /// public class WebSocketCommand { /// /// 消息类型 /// public string Message { get; set; } = string.Empty; /// /// 转换为 JSON 字符串 /// public string ToJson() => $"{{\"message\":\"{Message}\"}}"; }