46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
|
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<DeviceLists> 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<string, string> name = new Dictionary<string, string>()
|
|||
|
{
|
|||
|
{ "0", "關閉"},
|
|||
|
{ "1", "正常"},
|
|||
|
{ "2", "異常"}
|
|||
|
};
|
|||
|
return name[status];
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|