namespace ConsoleApp2
{

    public class UpLoadTraceModel
    {
        public Serials serials { get; set; }
        public Data data { get; set; }
    }

    public class Serials
    {
        public string part_id { get; set; } //二维码 LYC0000000000001
    }

    public class Data
    {
        public Insight insight { get; set; }
    }

    public class Insight
    {
        public Test_Attributes test_attributes { get; set; }
        public Test_Station_Attributes test_station_attributes { get; set; }
        public Uut_Attributes uut_attributes { get; set; }
        public Result[] results { get; set; }
    }

    public class Test_Attributes
    {
        /// <summary>
        /// 测试结果
        /// </summary>
        public string test_result { get; set; }//pass/fail
        /// <summary>
        /// 开始时间
        /// </summary>
        public string uut_start { get; set; }//2018-09-18 20:41:33
        /// <summary>
        /// 停止时间
        /// </summary>
        public string uut_stop { get; set; }
    }

    public class Test_Station_Attributes
    {

        public string fixture_id { get; set; }//H-76HO-SMA40-2200-A-00003
        public string head_id { get; set; }//  An optional string containing Cavity 1?
        /// <summary>
        /// 线id
        /// </summary>
        public string line_id { get; set; } //H-76HO-SMA40-2200-A-00003
        /// <summary>
        /// 软件名称
        /// </summary>
        public string software_name { get; set; }//TeamXXX
        /// <summary>
        /// 版本
        /// </summary>
        public string software_version { get; set; }//V1.111
        /// <summary>
        /// 
        /// </summary>
        public string station_id { get; set; }//Site_LineID_MachineID_StationName
    }

    public class Uut_Attributes
    {
        //操作员id
        public string op_id { get; set; }
        /// <summary>
        /// 白夜班
        /// </summary>
        public string shift { get; set; }//D/N
        /// <summary>
        /// 设备供应商?代工商
        /// </summary>
        public string station_vendor { get; set; }//team
    }

    public class Result
    {
        /// <summary>
        ///  “pass”, “fail” or “scrap”
        /// </summary>
        public string result { get; set; }//pass/fail
        /// <summary>
        /// A required string containing the name of the test
        /// 点位的意思
        /// </summary>
        public string test { get; set; } //"SPCXYZ (e.g., SPC-D-1_1)
        /// <summary>
        /// 单位
        /// </summary>
        public string units { get; set; }
        /// <summary>
        /// : A required string containing value of the parametric data
        /// 要求字符串包含参数话数据
        /// e.g. SPC-AW_M6,1,1.1,1.5,PASS
        /// 客户说是直接写 值
        /// </summary>
        public string value { get; set; }//
    }

}