using System;
using System.Collections.Generic;
using System.Text;

namespace Siger.Middlelayer.Share.Models
{ 
    public class MachineRunningState
    {
        public int companyid { get; set; }

        public int projectid { get; set; }

        public string startTime { get; set; }

        public string endTime { get; set; }

      //  public Enum msg { get; set; }

        public object zy_data { get; set; }

        public string iszy { get; set; }

        public List<int> ids { get; set; }

        public List<int> machines { get; set; }

        public LastData last_data { get; set; }

        public Dictionary<int, object> data { get; set; }

        public int ret { get; set; } = 1;

        public MachineRunningState()
        {
            ids = new List<int>();
            machines = new List<int>();
            data = new Dictionary<int, object>();
            last_data = new LastData();
        }
    }

    public class LastData
    {
        public System.Enum msg { get; set; }

        public int ret { get; set; }

        public List<MachineState> data { get; set; }

        public LastData()
        {
            data = new List<MachineState>();
        }
    }

    public class DataInfo
    {
        public string companyid { get; set; }
        public string machinecode { get; set; }
        public string machineid { get; set; }
        public string machinename { get; set; }
        public string op { get; set; }
        public string pop { get; set; }
        public string projectid { get; set; }
        public string sectionid { get; set; }
        public string sign_time { get; set; }
        public string signid { get; set; }
        public string username { get; set; }
    }
}
