using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Siger.ApiDashboard.Tasks.Model
{
    public class SplitResult
    {
        public SplitResult()
        {
            echartData = new List<Split_EcharData>();
            tableData = new List<Split_tableData>();
        }
        public string type { get; set; } = "MachineSplit";
        public string title { get; set; }
        public List<Split_EcharData> echartData { get; set; }

        public List<Split_tableData> tableData { get; set; }
    }

    public class Split_EcharData
    {
        public Split_EcharData()
        {
            xdata = new List<string>();
            ydata = new Split_ydata();
        }
        public List<string> xdata { get; set; }
        public Split_ydata ydata { get; set; }
    }
    public class Split_ydata
    {
        public Split_ydata()
        {
            shutdown = new List<double>();
            running = new List<double>();
            debug = new List<double>();
            free = new List<double>();
            fult = new List<double>();
        }
        public List<double> shutdown { get; set; }
        public List<double> running { get; set; }
        public List<double> debug { get; set; }
        public List<double> free { get; set; }
        public List<double> fult { get; set; }

    }
    public class Split_tableData
    {
        public string datetime { get; set; }
        public double hour1 { get; set; }
        public double hour2 { get; set; }
        public double hour3 { get; set; }
        public double hour4 { get; set; }
        public double hour5 { get; set; }
        public double num1 { get; set; }
        public double num2 { get; set; }
        public double num3 { get; set; }
        public double num4 { get; set; }
        public double num5 { get; set; }
    }
}
