using System;
namespace Lebai.SDK.Dtos
{
public class OriginTaskInfo
{
public int Id { get; set; }
public int? scene_id { get; set; }
public int execute_count { get; set; }
public int executed_count { get; set; }
public string Name { get; set; }
public TaskStatus Status { get; set; }
public string Comment { get; set; }
public string start_time { get; set; }
public string end_time { get; set; }
public long consume_time { get; set; }
public int Mode { get; set; }
public string create_time { get; set; }
public string update_time { get; set; }
public int? scene_type { get; set; }
public object first_pose { get; set; }
public TaskInfo ToTaskInfo()
{
return new TaskInfo
{
Id = Id,
Comment = Comment,
Mode = Mode,
Name = Name,
Status = Status,
ConsumeTime = consume_time,
CreationTime = create_time,
EndTime = end_time,
ExecuteCount = execute_count,
ExecutedCount = executed_count,
FirstPose = first_pose,
SceneId = scene_id,
SceneType = scene_type,
StartTime = start_time,
UpdateTime = update_time
};
}
}
public class TaskInfo
{
public int Id { get; set; }
///
/// 场景Id
///
public int? SceneId { get; set; }
///
/// 执行次数
///
public int? ExecuteCount { get; set; }
///
/// 执行的次数
///
public int? ExecutedCount { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 状态
///
public TaskStatus? Status { get; set; }
///
/// 注释
///
public string Comment { get; set; }
///
/// 开始时间
///
public string StartTime { get; set; }
///
/// 结束时间
///
public string EndTime { get; set; }
public long? ConsumeTime { get; set; }
public int? Mode { get; set; }
///
/// 创建时间
///
public string CreationTime { get; set; }
///
/// 更新时间
///
public string UpdateTime { get; set; }
public int? SceneType { get; set; }
public object FirstPose { get; set; }
}
}