TerminalData.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Collections.Generic;
  3. namespace VidFilesUpgradeTool
  4. {
  5. class Entity
  6. {
  7. public string Id { get; private set; }
  8. public DateTime CreateTime { get; private set; }
  9. public DateTime UpdateTime { get; set; }
  10. }
  11. class TerminalData: Entity
  12. {
  13. public TerminalDataType DataType { get; set; }
  14. public string Application { get; set; }
  15. public string PreviewImageFileToken { get; set; }
  16. public string PatientInfoId { get; set; }
  17. public ICollection<TerminalDataFile> Files { get; set; }
  18. public ICollection<TerminalDataComment> Comments { get; set; }
  19. public string TerminalRecordId { get; set; }
  20. }
  21. class TerminalDataFile : Entity
  22. {
  23. /// <summary>
  24. /// Indicate report file name
  25. /// </summary>
  26. public string FileName { get; set; }
  27. public ImageQuality ImageQuality { get; set; }
  28. }
  29. class TerminalDataComment : Entity
  30. {
  31. public UserInfo User { get; set; }
  32. public double Score { get; set; }
  33. public string Description { get; set; }
  34. }
  35. class UserInfo
  36. {
  37. public string Id { get; set; }
  38. public string Name { get; set; }
  39. }
  40. enum ImageQuality
  41. {
  42. High,
  43. Low
  44. }
  45. enum TerminalDataType
  46. {
  47. VinnoVidSingle,
  48. ThirdVidSingle,
  49. VinnoVidMovie,
  50. ThirdVidMovie,
  51. Image
  52. }
  53. }