ibms-dome/FrontendWebApi/Models/EmergencyRecord.cs

50 lines
1.6 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 EmergencyRecord
{
}
public class EmergencyRecordEventPost
{
public int selectaDisaster { get; set; }
public string selectaBuild { get; set; }
public int selectaType { get; set; }
public string dateranger { get; set; }
}
public class EmergencyRecordEvent : Actor
{
private string _alarm_time;
private string _finish_time;
2022-10-14 16:08:54 +08:00
public string emergency_event_guid { get; set; }
public int disaster { get; set; }
public string device_guid { get; set; }
public string building_guid { get; set; }
public byte type { get; set; }
public string alarm_time { get { return Convert.ToDateTime(_alarm_time).ToString("yyyy-MM-dd HH:mm:ss"); } set { _alarm_time = value; } }
public string finish_time { get { return Convert.ToDateTime(_finish_time).ToString("yyyy-MM-dd HH:mm:ss"); } set { _finish_time = value; } }
2022-10-14 16:08:54 +08:00
}
public class EmergencyRecordEventTable : EmergencyRecordEvent
{
public string disaster_name { get; set; }
public string device_name { get; set; }
public string building_name { get; set; }
}
public class EmergencyRecordItem : Actor
{
public string emergency_item_guid { get; set; }
public string big_setting { get; set; }
public string step_setting { get; set; }
public byte finished { get; set; }
public string reason { get; set; }
}
}