using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FrontendWebApi.Models { //public class HistoryClass //{ // public string main_system_guid { get; set; } // public string main_name { get; set; } // public string sub_system_guid { get; set; } // public string sub_name { get; set; } // public string building_guid { get; set; } // public string building_name { get; set; } // public string device_item_guid { get; set; } // public string item_name { get; set; } //} //public class History_Sub_device //{ // public string building_guid { get; set; } // public string sub_system_guid { get; set; } // public string device_guid { get; set; } // public string full_name { get; set; } //} // public class History_Main_system // { // public string main_system_guid { get; set; } // public string full_name { get; set; } // public List History_Sub_systems { get; set; } // } // public class History_Sub_system // { // public string sub_system_guid { get; set; } // public string full_name { get; set; } // public List History_Builds { get; set; } //} // public class History_Build // { // public string building_guid { get; set; } // public string full_name { get; set; } // public List History_Devices { get; set; } // } // public class History_Device // { // public string device_guid { get; set; } // public string full_name { get; set; } // public List History_Deviceitems { get; set; } // } // public class History_Deviceitem // { // public string device_item_guid { get; set; } // public string full_name { get; set; } // } public class HistoryDBMainSub { public string main_system_tag { get; set; } public string main_name { get; set; } public string sub_system_tag { get; set; } public string sub_name { get; set; } public string device_normal_color { get; set; } public string device_close_color { get; set; } public string device_error_color { get; set; } } public class BuildingFloorRawData { public string building_guid { get; set; } public string building_name { get; set; } public string floor_guid { get; set; } public string floor_name { get; set; } } public class History_MainSubBuildFloor { public List history_Builds { get; set; } public List history_Main_Systems { get; set; } } public class History_Build { public string building_guid { get; set; } public string full_name { get; set; } public List history_Floors { get; set; } } public class History_Floor { public string floor_guid { get; set; } public string full_name { get; set; } } public class History_Main_system { public string main_system_tag { get; set; } public string full_name { get; set; } public List History_Sub_systems { get; set; } } public class History_Sub_system { public string sub_system_tag { get; set; } public string full_name { get; set; } public string device_normal_color { get; set; } public string device_close_color { get; set; } public string device_error_color { get; set; } } public class History_PostDevice { public List SelectSub { get; set; } public List SelectBuildings { get; set; } public List SelectFloors { get; set; } public string Device_name { get; set; } } public class History_GetDevice { public string device_guid { get; set; } public string building_name { get; set; } public string main_name { get; set; } public string sub_name { get; set; } public string device_name { get; set; } public string device_number { get; set; } } public class History_GetItem { public string building { get; set; } public string device_number { get; set; } public string device_name { get; set; } public string main_name { get; set; } public string sub_name { get; set; } public string device_guid { get; set; } } public class itemlist { //public History_GetItem postDevice { get; set; } public List select_data { get; set; } } public class History_PostItem { public string building_name { get; set; } public string device_number { get; set; } public string device_name { get; set; } public string item_name { get; set; } public string points { get; set; } public string unit { get; set; } } public class PostRealTimeCombination { public string account { get; set; } public string building_guid { get; set; } } public class RealTimeCombinationRawData { public string Combination_guid { get; set; } public string Combination_full_name { get; set; } public string Device_guid { get; set; } public string Device_number { get; set; } public string Device_full_name { get; set; } public string Building_full_name { get; set; } public string Main_system_full_name { get; set; } public string Sub_system_full_name { get; set; } } public class RealTimeCombination { public string Combination_guid { get; set; } public string Combination_full_name { get; set; } public string Building_guid { get; set; } public string Userinfo_guid { get; set; } public List Details { get; set; } } public class RealTimeCombinationDetail { public string Combination_guid { get; set; } public string Device_guid { get; set; } public string Device_number { get; set; } public string Device_full_name { get; set; } public string Building_full_name { get; set; } public string Main_system_full_name { get; set; } public string Sub_system_full_name { get; set; } } public class PostEditRealTimeCombination { public string Combination_guid { get; set; } public string Full_name { get; set; } } public class PostSaveRealTimeCombination { public string Building_guid { get; set; } public string Combination_guid { get; set; } public byte Save_type { get; set; } public string Full_name { get; set; } public List Details { get; set; } } /// /// post 方式取得[歷史資料查詢]的過濾條件控制面板 /// public class PostHistoryFilterPanel { public string Account { get; set; } public string Building_guid { get; set; } } public class PostHistoryRawDataFilter { public string Start_timstamp { get; set; } public string End_timstamp { get; set; } public List HistoryItems { get; set; } } public class HistoryItem { public string Device_number_point { get; set; } public string Unit { get; set; } } public class DeviceItemInfo { public string Building_name { get; set; } public string Main_system_name { get; set; } public string Sub_system_name { get; set; } public string Device_number { get; set; } public string Device_name { get; set; } public string Item_name { get; set; } public string Points { get; set; } public string Unit { get; set; } } public class HistoryRawData : DeviceItemInfo { public string Value { get; set; } public string Timestamp { get; set; } } public class HistoryExport { public string device_name { get; set; } public string value { get; set; } public string record_time { get; set; } } }