vCloudServerConfig.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using WingInterfaceLibrary.Enum;
  2. namespace Vinno.vCloud.Common.FIS
  3. {
  4. internal class vCloudServerConfig
  5. {
  6. /// <summary>
  7. /// 是否由设备端压缩图像
  8. /// </summary>
  9. public bool IsUploadThumbnail { get; set; }
  10. /// <summary>
  11. /// 类型
  12. /// </summary>
  13. public OrganizationPatientTypeEnum PatientType { get; set; }
  14. /// <summary>
  15. /// 心跳包间隔,单位秒
  16. /// </summary>
  17. public int HeartRateSeconds { get; set; }
  18. /// <summary>
  19. /// Server Web Socket url
  20. /// </summary>
  21. public string NotificationUrl { get; set; }
  22. /// <summary>
  23. /// 是否合流
  24. /// </summary>
  25. public bool MergedChannel { get; set; }
  26. /// <summary>
  27. /// Feature是否Released
  28. /// </summary>
  29. public bool IsFeatureReleased { get; set; }
  30. public int LiveConsultationRateSeconds { get; set; }
  31. public int MergedVideoOutputWidth { get; set; }
  32. public int MergedVideoOutputHeight { get; set; }
  33. public bool IsSelfRtcService { get; set; }
  34. public int RemoteControlAskTimeoutSec { get; set; }
  35. public string LiveProtocol { get; set; }
  36. private static vCloudServerConfig _instance;
  37. public static vCloudServerConfig Instance => _instance ?? (_instance = new vCloudServerConfig());
  38. public vCloudServerConfig()
  39. {
  40. }
  41. public override string ToString()
  42. {
  43. return $"IsUploadThumbnail:{IsUploadThumbnail},PatientType:{PatientType},HeartRateSeconds:{HeartRateSeconds},NotificationUrl:{NotificationUrl},MergedChannel:{MergedChannel},LiveConsultationRateSeconds:{LiveConsultationRateSeconds},MergedVideoOutputWidth:{MergedVideoOutputWidth},MergedVideoOutputHeight:{MergedVideoOutputHeight},IsSelfRtcService:{IsSelfRtcService},RemoteControlAskTimeoutSec:{RemoteControlAskTimeoutSec},LiveProtocol:{LiveProtocol}";
  44. }
  45. }
  46. }