2020-03-31 11:07:23 +02:00

78 lines
1.8 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 string Model { get; set; }
public bool Status { get; set; }
public ConnectionStatus ConnectionStatus { get; set; }
public string LocationId { 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 string Model { get; set; }
public string FirmwareVersion { get; set; }
public int Port { get; set; }
public ConnectionStatus ConnectionStatus { get; set; }
public bool Status { 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 string ServiceIdentification { get; set; }
public bool Battery { get; set; }
public int BatteryStatus { get; set; }
public string ProviderId { get; set; }
public List<string> Groups { get; set; }
public Dictionary<string, object> Properties { get; set; }
public List<string> SupportedOperations { get; set; }
}
}