46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DataServer.api
|
|
{
|
|
public class get_unit_exception
|
|
{
|
|
/// <summary>
|
|
/// 返回码
|
|
/// </summary>
|
|
public int code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 返回说明
|
|
/// </summary>
|
|
public string msg { get; set; }
|
|
/// <summary>
|
|
/// 数据
|
|
/// </summary>
|
|
public List<unit_exceptionData> data { get; set; }
|
|
}
|
|
public class unit_exceptionData
|
|
{
|
|
public string UnitTime { get; set; }
|
|
public List<unit_exception> data { get; set; }
|
|
}
|
|
public class unit_exception
|
|
{
|
|
/// <summary>
|
|
/// 正常
|
|
/// </summary>
|
|
public int Normal { get; set; }
|
|
/// <summary>
|
|
/// 预警
|
|
/// </summary>
|
|
public int Early { get; set; }
|
|
/// <summary>
|
|
/// 故障
|
|
/// </summary>
|
|
public int Malfunction { get; set; }
|
|
}
|
|
}
|