mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 17:51:20 +00:00
60 lines
1.4 KiB
C#
60 lines
1.4 KiB
C#
using MyCore.DTO.Common;
|
|
using MyCore.Models.MyControlPanel;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MyCore.DTO.MyControlPanel
|
|
{
|
|
public class DeviceSummaryDTO
|
|
{
|
|
public string Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public ConnectionStatus ConnectionStatus { get; set; }
|
|
|
|
public LocationDTO Location { get; set; }
|
|
|
|
public bool Battery { get; set; }
|
|
|
|
public int BatteryStatus { get; set; }
|
|
}
|
|
|
|
public class DeviceDetailDTO
|
|
{
|
|
public string Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public ConnectionStatus ConnectionStatus { get; set; }
|
|
|
|
public string LocationId { get; set; }
|
|
|
|
public LocationDTO Location { get; set; }
|
|
|
|
public List<MeansOfCommunication> MeansOfCommunications { get; set; }
|
|
|
|
public DateTime CreatedDate { get; set; }
|
|
|
|
public DateTime UpdatedDate { get; set; }
|
|
|
|
public string LastMessage { get; set; } // TODO UNIFORMISATION ?
|
|
|
|
public DateTime LastMessageDate { get; set; }
|
|
|
|
public string IpAddress { get; set; }
|
|
|
|
public bool Battery { get; set; }
|
|
|
|
public int BatteryStatus { get; set; }
|
|
|
|
public string ProviderId { get; set; }
|
|
|
|
public List<string> Groups { get; set; }
|
|
|
|
public List<InformationDTO> Informations { get; set; }
|
|
}
|
|
}
|