using System.Collections.Generic;

namespace Siger.Middlelayer.CncRepository.Response
{
    public class ResponseGetMachineTodayDetail
    {
        public string machine_name { get; set; }

        public string product_name { get; set; } = "NA";

        public string route_name { get; set; } = "NA";

        public string today_yield { get; set; } = "NA";

        public string privitity { get; set; } = "NA";

        public double status_range { get; set; } = 0;

        public string alarm_code { get; set; } = "NA";

        public IList<MachineOutput> outputs { get; set; }

        public IList<MachineStatusSummary> machinestatus { get; set; }

        public ResponseGetMachineTodayDetail()
        {
            outputs = new List<MachineOutput>();
            machinestatus = new List<MachineStatusSummary>();
        }
    }

    public class MachineOutput
    {
        public string program_no { get; set; } = "";

        public string product_name { get; set; } = "";

        public double yield { get; set; } = 0;
    }

    public class MachineStatusSummary
    {
        public int status { get; set; }

        public double time { get; set; }

        public string percent { get; set; }
    }
}
