54 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MyCore.Interfaces.DTO
{
public class RoomSummaryDTO
{
public string Id { get; set; }
public string HomeId { get; set; }
public string Name { get; set; }
}
public class RoomDetailDTO : RoomSummaryDTO
{
public DateTime CreatedDate { get; set; }
public DateTime UpdatedDate { get; set; }
public List<DeviceDetailDTO> Devices { get; set; }
}
public class RoomMainDetailDTO : RoomSummaryDTO
{
public DateTime CreatedDate { get; set; }
public DateTime UpdatedDate { get; set; }
public bool IsTemperature { get; set; }
public string Temperature { get; set; }
public bool IsHumidity { get; set; }
public string Humidity { get; set; }
public bool IsMotion { get; set; }
public bool? Motion { get; set; }
public bool IsDoor { get; set; }
public bool? Door { get; set; }
public List<DeviceDetailDTO> EnvironmentalDevices { get; set; } // for temp and humidity
public List<DeviceDetailDTO> SecurityDevices { get; set; } // for motion
}
public class RoomCreateOrUpdateDetailDTO : RoomSummaryDTO
{
public List<string> DeviceIds { get; set; } // TODO handle groupdIds
}
}