WeldMonitorDto.cs 1.27 KB
namespace HHECS.RobotTool.Dto.WeldMonitor
{
    /// <summary>
    /// 焊接监控参数
    /// </summary>
    /// <remarks>Web组件参数</remarks>
    public class WeldMonitorDto
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        public Guid Key { get; set; }

        /// <summary>
        /// 总高度
        /// </summary>
        public double Height { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public List<LayerItem> Data { get; set; } = new List<LayerItem>();
    }

    public class LayerItem
    {
        /// <summary>
        /// 当前层
        /// </summary>
        public int Layer { get; set; }

        /// <summary>
        /// 层高
        /// </summary>
        public double Height { get; set; }

        /// <summary>
        /// 焊接道数集合
        /// </summary>

        public List<DoneItem> Done { get; set; } = new List<DoneItem>();
    }

    public class DoneItem
    {
        /// <summary>
        /// 状态
        /// </summary>
        /// <remarks>0:未焊接,1:焊接中,2:已完成</remarks>
        public int State { get; set; }

        /// <summary>
        /// 坐标
        /// </summary>
        public string Position { get; set; } = null!;
    }
}