vCloudServerConfig.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. public int LiveConsultationRateSeconds { get; set; }
  27. public int MergedVideoOutputWidth { get; set; }
  28. public int MergedVideoOutputHeight { get; set; }
  29. public bool IsSelfRtcService { get; set; }
  30. public int RemoteControlHeartRateSeconds { get; set; }
  31. public string LiveProtocol { get; set; }
  32. public TransactionStatusEnum LiveProtocolType { get; set; }
  33. public string FISWebUrl { get; set; }
  34. /// <summary>
  35. /// 是否支持科研模式
  36. /// </summary>
  37. public bool IsSupportResearchMode { get; set; }
  38. private static vCloudServerConfig _instance;
  39. public static vCloudServerConfig Instance => _instance ?? (_instance = new vCloudServerConfig());
  40. public vCloudServerConfig()
  41. {
  42. }
  43. public override string ToString()
  44. {
  45. return $"IsUploadThumbnail:{IsUploadThumbnail},PatientType:{PatientType},HeartRateSeconds:{HeartRateSeconds},NotificationUrl:{NotificationUrl},MergedChannel:{MergedChannel},LiveConsultationRateSeconds:{LiveConsultationRateSeconds},MergedVideoOutputWidth:{MergedVideoOutputWidth},MergedVideoOutputHeight:{MergedVideoOutputHeight},IsSelfRtcService:{IsSelfRtcService},RemoteControlHeartRateSeconds:{RemoteControlHeartRateSeconds},LiveProtocol:{LiveProtocol},LiveProtocolType:{LiveProtocolType},IsSupportResearchMode:{IsSupportResearchMode}";
  46. }
  47. }
  48. }