123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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; }
- /// <summary>
- /// 音乐播放服务
- /// "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"
- /// }
- /// </summary>
- 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; }
- }
- }
- }
|