1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using IES.ExamServer.Models;
- namespace IES.ExamServer.DI
- {
- public class CenterServiceConnectionService
- {
- private bool _centerIsConnected;
- private bool _notifyIsConnected;
- // 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; }
- }
- }
- }
|