ibms-dome/FrontendWebApi/Models/OntimeRawData.cs

42 lines
1.0 KiB
C#
Raw Permalink Normal View History

2022-10-14 16:08:54 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FrontendWebApi.Models
{
public class PostOntimeRawData
{
public string building_guid { get; set; }
public string main_system_guid { get; set; }
public string sub_system_guid { get; set; }
}
/// <summary>
/// 從資料庫取回來的RawData
/// </summary>
public class OntimeRawData
{
public int id { get; set; }
public string device_number { get; set; }
public string name { get; set; }
public string value { get; set; }
public byte is_bool { get; set; }
}
/// <summary>
/// 重新整理過後的RawData
/// </summary>
public class OntimeAggregateRawData
{
public string device_number { get; set; }
public List<Point> points { get; set; }
}
public class Point
{
public string name { get; set; }
public string value { get; set; }
public byte is_bool { get; set; }
}
}