Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user