CenterServiceConnectionService.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using IES.ExamServer.Models;
  2. namespace IES.ExamServer.DI
  3. {
  4. public class CenterServiceConnectionService
  5. {
  6. private bool _centerIsConnected;
  7. private bool _notifyIsConnected;
  8. // private bool _musicIsConnected;
  9. public string? centerUrl { get; set; }
  10. public string? notifyUrl { get; set; }
  11. /// <summary>
  12. /// 音乐播放服务
  13. /// "MusicAIServer": {
  14. /// "MusicUrl": "https://musicapi.winteach.cn/api/v1",
  15. /// "AppId": "8a68f563f3384662acbc268336b98ae2",
  16. /// "KeyAES": "GcRHG7pGgepXXOOU",
  17. /// "IvAES": "W5yt6WthEs2mQlSn"
  18. /// }
  19. /// "MusicAIServer": {
  20. /// "MusicUrl": "https://tmdapi.yosocloud.com/api/v1",
  21. /// "AppId": "8a68f563f3384662acbc268336b98ae2",
  22. /// "KeyAES": "GcRHG7pGgepXXOOU",
  23. /// "IvAES": "W5yt6WthEs2mQlSn"
  24. /// }
  25. /// </summary>
  26. public string? musicUrl { get; set; }
  27. public string? loginToken { get; set; }
  28. public ServerDevice? serverDevice { get; set; }
  29. public bool musicIsConnected
  30. { get;set;
  31. //get { return string.IsNullOrWhiteSpace(musicUrl) ? false : _musicIsConnected; }
  32. //set { _musicIsConnected = value; }
  33. }
  34. public bool notifyIsConnected
  35. {
  36. get { return string.IsNullOrWhiteSpace(notifyUrl) ? false : _notifyIsConnected; }
  37. set { _notifyIsConnected = value; }
  38. }
  39. public bool centerIsConnected
  40. {
  41. get { return string.IsNullOrWhiteSpace(centerUrl) ? false : _centerIsConnected; }
  42. set { _centerIsConnected = value; }
  43. }
  44. }
  45. }