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; } } /// /// 從資料庫取回來的RawData /// 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; } } /// /// 重新整理過後的RawData /// public class OntimeAggregateRawData { public string device_number { get; set; } public List points { get; set; } } public class Point { public string name { get; set; } public string value { get; set; } public byte is_bool { get; set; } } }