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 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 EnvironmentalDevices { get; set; } // for temp and humidity public List SecurityDevices { get; set; } // for motion } public class RoomCreateOrUpdateDetailDTO : RoomSummaryDTO { public List DeviceIds { get; set; } // TODO handle groupdIds } }