终端一体化运控平台
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.
 
 
 

127 rivejä
2.2 KiB

  1. using System;
  2. namespace Lebai.SDK.Dtos
  3. {
  4. public class OriginTaskInfo
  5. {
  6. public int Id { get; set; }
  7. public int? scene_id { get; set; }
  8. public int execute_count { get; set; }
  9. public int executed_count { get; set; }
  10. public string Name { get; set; }
  11. public TaskStatus Status { get; set; }
  12. public string Comment { get; set; }
  13. public string start_time { get; set; }
  14. public string end_time { get; set; }
  15. public long consume_time { get; set; }
  16. public int Mode { get; set; }
  17. public string create_time { get; set; }
  18. public string update_time { get; set; }
  19. public int? scene_type { get; set; }
  20. public object first_pose { get; set; }
  21. public TaskInfo ToTaskInfo()
  22. {
  23. return new TaskInfo
  24. {
  25. Id = Id,
  26. Comment = Comment,
  27. Mode = Mode,
  28. Name = Name,
  29. Status = Status,
  30. ConsumeTime = consume_time,
  31. CreationTime = create_time,
  32. EndTime = end_time,
  33. ExecuteCount = execute_count,
  34. ExecutedCount = executed_count,
  35. FirstPose = first_pose,
  36. SceneId = scene_id,
  37. SceneType = scene_type,
  38. StartTime = start_time,
  39. UpdateTime = update_time
  40. };
  41. }
  42. }
  43. public class TaskInfo
  44. {
  45. public int Id { get; set; }
  46. /// <summary>
  47. /// 场景Id
  48. /// </summary>
  49. public int? SceneId { get; set; }
  50. /// <summary>
  51. /// 执行次数
  52. /// </summary>
  53. public int? ExecuteCount { get; set; }
  54. /// <summary>
  55. /// 执行的次数
  56. /// </summary>
  57. public int? ExecutedCount { get; set; }
  58. /// <summary>
  59. /// 名称
  60. /// </summary>
  61. public string Name { get; set; }
  62. /// <summary>
  63. /// 状态
  64. /// </summary>
  65. public TaskStatus? Status { get; set; }
  66. /// <summary>
  67. /// 注释
  68. /// </summary>
  69. public string Comment { get; set; }
  70. /// <summary>
  71. /// 开始时间
  72. /// </summary>
  73. public string StartTime { get; set; }
  74. /// <summary>
  75. /// 结束时间
  76. /// </summary>
  77. public string EndTime { get; set; }
  78. public long? ConsumeTime { get; set; }
  79. public int? Mode { get; set; }
  80. /// <summary>
  81. /// 创建时间
  82. /// </summary>
  83. public string CreationTime { get; set; }
  84. /// <summary>
  85. /// 更新时间
  86. /// </summary>
  87. public string UpdateTime { get; set; }
  88. public int? SceneType { get; set; }
  89. public object FirstPose { get; set; }
  90. }
  91. }