平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.6 KiB

  1. using AngleSharp.Dom;
  2. namespace SafeCampus.Application.Services.Business.Warn.Dto;
  3. public class WarnInfoList
  4. {
  5. public int ID { get; set; }
  6. /// <summary>
  7. /// 预警id
  8. /// </summary>
  9. public string AlarmId { get; set; }
  10. /// <summary>
  11. /// 预警类型
  12. /// </summary>
  13. public string AlarmType { get; set; }
  14. /// <summary>
  15. /// 预警类型名称
  16. /// </summary>
  17. public string AlarmTypeDesc { get; set; }
  18. /// <summary>
  19. /// 摄像头id
  20. /// </summary>
  21. public string CameraId { get; set; }
  22. /// <summary>
  23. /// 摄像头名称
  24. /// </summary>
  25. public string CameraName { get; set; }
  26. /// <summary>
  27. /// 事件发生时间
  28. /// </summary>
  29. public DateTime Tick { get; set; }
  30. /// <summary>
  31. /// 摄像头快照,原链接有效期为2小时,获取到数据后下载到本地
  32. /// </summary>
  33. public string SnapshotUrl { get; set; }
  34. /// <summary>
  35. /// 人员名称
  36. /// </summary>
  37. public string PersonName { get; set; }
  38. /// <summary>
  39. /// 人员类型
  40. /// </summary>
  41. public string PersonType { get; set; }
  42. /// <summary>
  43. /// 预警处理状态
  44. /// </summary>
  45. public int WarnHand { get; set; }
  46. /// <summary>
  47. /// 处理时间
  48. /// </summary>
  49. public DateTime? HandTime { get; set; }
  50. }
  51. public class WarnInfoListMapper : IRegister
  52. {
  53. public void Register(TypeAdapterConfig config)
  54. {
  55. config.ForType<WarnInfo, WarnInfoList>()
  56. .Map(dest => dest.CameraName, src => src.CameraId.GetDescriptionByEnum<CameraType>());
  57. }
  58. }