mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 17:51:20 +00:00
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using MyCore.Interfaces.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MyCore.Interfaces.DTO
|
|
{
|
|
/// <summary>
|
|
/// Home DTO
|
|
/// </summary>
|
|
public class HomeDTO
|
|
{
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public bool IsAlarm { get; set; }
|
|
public bool IsDefault { get; set; }
|
|
public AlarmModeDTO CurrentAlarmMode { get; set; }
|
|
public DateTime CreatedDate { get; set; }
|
|
public DateTime UpdatedDate { get; set; }
|
|
public List<string> UsersIds { get; set; }
|
|
}
|
|
|
|
public class HomeDetailDTO : HomeDTO
|
|
{
|
|
|
|
public List<UserInfoDetailDTO> Users { get; set; }
|
|
public List<DeviceSummaryDTO> Devices { get; set; }
|
|
public List<AutomationDTO> Automations { get; set; }
|
|
public List<ProviderDTO> Providers { get; set; }
|
|
public List<GroupSummaryDTO> Groups { get; set; }
|
|
//public List<ScreenConfigurationDTO> ScreenConfigurations { get; set; } TODO
|
|
//public List<ScreenDeviceDTO> ScreenDevices { get; set; } TODO
|
|
}
|
|
|
|
public class CreateOrUpdateHomeDTO : HomeDTO
|
|
{
|
|
public List<string> UsersIds { get; set; }
|
|
}
|
|
}
|