66 lines
1.8 KiB
C#
66 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FrontendWebApi.Models
|
|
{
|
|
public class GetDevicePost
|
|
{
|
|
public string building_tag { get; set; }
|
|
public string sub_system_tag { get; set; }
|
|
public string floor_guid { get; set; }
|
|
public string schedule_guid { get; set; }
|
|
}
|
|
public class lightDevice
|
|
{
|
|
public string device_guid { get; set; }
|
|
public string full_name { get; set; }
|
|
public string device_number { get; set; }
|
|
public byte check { get; set; }
|
|
}
|
|
public class Schedule
|
|
{
|
|
public string light_schedule_guid { get; set; }
|
|
public string full_name { get; set; }
|
|
public string week { get; set; }
|
|
public byte cycle { get; set; }
|
|
public string floor_guid { get; set; }
|
|
public string start_time { get; set; }
|
|
public string end_time { get; set; }
|
|
public byte status { get; set; }
|
|
}
|
|
public class ScheduleLog
|
|
{
|
|
public int light_schedule_log_id { get; set; }
|
|
public string light_schedule_guid { get; set; }
|
|
public string date { get; set; }
|
|
public string start_time { get; set; }
|
|
public string end_time { get; set; }
|
|
}
|
|
public class SaveSchedule : Schedule
|
|
{
|
|
public List<string> devicelist { get; set; }
|
|
public List<string> changeNames { get; set; } = new List<string>();
|
|
}
|
|
public class ScheduleTable : Schedule
|
|
{
|
|
public int devicecount { get; set; }
|
|
}
|
|
|
|
public class listfloors
|
|
{
|
|
public List<string> Floors { get; set; }
|
|
}
|
|
|
|
public class ScheduleDevice
|
|
{
|
|
public int Id { get; set; }
|
|
public string light_schedule_guid { get; set; }
|
|
public string device_guid { get; set; }
|
|
|
|
}
|
|
|
|
|
|
}
|