Files
I150/srcs/RobotNet10/RobotApp/RobotNet10.RobotApp.Client/Shared/Devices/DeviceDto.cs
2026-07-03 16:37:12 +07:00

26 lines
1.0 KiB
C#

namespace RobotNet10.RobotApp.Client.Shared.Devices;
/// <summary>
/// DTO cho thông tin device để truyền qua SignalR
/// </summary>
public class DeviceDto
{
public string DeviceId { get; set; } = string.Empty;
public string DeviceName { get; set; } = string.Empty;
public DeviceType DeviceType { get; set; }
public string? Description { get; set; }
public DeviceStatus Status { get; set; }
public bool IsConnected { get; set; }
public DateTime LastUpdateTime { get; set; }
public DateTime? LastConnectedTime { get; set; }
public DateTime? LastDisconnectedTime { get; set; }
public string? LastError { get; set; }
public int ReconnectAttemptCount { get; set; }
public bool AutoReconnectEnabled { get; set; }
public int ReconnectDelayMs { get; set; }
public int MaxReconnectAttempts { get; set; }
public List<PropertyDescription> PropertyDescriptions { get; set; } = new();
public Dictionary<string, string> Properties { get; set; } = new();
}