using System.Collections.Generic; namespace FrontendWebApi.Models { public class FindDevice { public string main_system_tag { get; set; } public string building_tag { get; set; } public string floor_tag { get; set; } } public class BuildList { public string full_name { get; set; } public string building_tag { get; set; } } public class FloorList { public string full_name { get; set; } public string floor_tag { get; set; } public List device_list {get; set;} } public class DeviceLists { public string device_guid { get; set; } public string full_name { get; set; } public string device_coordinate { get; set; } public string status { get; set; } public string device_status { get { Dictionary name = new Dictionary() { { "0", "關閉"}, { "1", "正常"}, { "2", "異常"} }; return name[status]; } } } }