using IES.ExamServer.Models; namespace IES.ExamServer.DI { public class CenterServiceConnectionService { private bool _centerIsConnected; private bool _notifyIsConnected; public Network? primaryNetwork { get; set; } // private bool _musicIsConnected; public string? centerUrl { get; set; } public string? notifyUrl { get; set; } /// /// 音乐播放服务 /// "MusicAIServer": { /// "MusicUrl": "https://musicapi.winteach.cn/api/v1", /// "AppId": "8a68f563f3384662acbc268336b98ae2", /// "KeyAES": "GcRHG7pGgepXXOOU", /// "IvAES": "W5yt6WthEs2mQlSn" /// } /// "MusicAIServer": { /// "MusicUrl": "https://tmdapi.yosocloud.com/api/v1", /// "AppId": "8a68f563f3384662acbc268336b98ae2", /// "KeyAES": "GcRHG7pGgepXXOOU", /// "IvAES": "W5yt6WthEs2mQlSn" /// } /// public string? musicUrl { get; set; } public string? loginToken { get; set; } public ServerDevice? serverDevice { get; set; } public bool musicIsConnected { get;set; //get { return string.IsNullOrWhiteSpace(musicUrl) ? false : _musicIsConnected; } //set { _musicIsConnected = value; } } public bool notifyIsConnected { get { return string.IsNullOrWhiteSpace(notifyUrl) ? false : _notifyIsConnected; } set { _notifyIsConnected = value; } } public bool centerIsConnected { get { return string.IsNullOrWhiteSpace(centerUrl) ? false : _centerIsConnected; } set { _centerIsConnected = value; } } } }