vCloudServerConfig.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 RemoteControlAskTimeoutSec { get; set; }
  31. public string LiveProtocol { get; set; }
  32. public TransactionStatusEnum LiveProtocolType { get; set; }
  33. private static vCloudServerConfig _instance;
  34. public static vCloudServerConfig Instance => _instance ?? (_instance = new vCloudServerConfig());
  35. public vCloudServerConfig()
  36. {
  37. }
  38. public override string ToString()
  39. {
  40. return $"IsUploadThumbnail:{IsUploadThumbnail},PatientType:{PatientType},HeartRateSeconds:{HeartRateSeconds},NotificationUrl:{NotificationUrl},MergedChannel:{MergedChannel},LiveConsultationRateSeconds:{LiveConsultationRateSeconds},MergedVideoOutputWidth:{MergedVideoOutputWidth},MergedVideoOutputHeight:{MergedVideoOutputHeight},IsSelfRtcService:{IsSelfRtcService},RemoteControlAskTimeoutSec:{RemoteControlAskTimeoutSec},LiveProtocol:{LiveProtocol},LiveProtocolType:{LiveProtocolType}";
  41. }
  42. }
  43. }