27 lines
729 B
C#
27 lines
729 B
C#
using RobotNet10.RobotApp.Client.Shared.Devices;
|
|
|
|
namespace RobotNet10.RobotApp.Devices;
|
|
|
|
/// <summary>
|
|
/// Event args khi trạng thái device thay đổi
|
|
/// </summary>
|
|
public class DeviceStatusChangedEventArgs : EventArgs
|
|
{
|
|
public DeviceStatus PreviousStatus { get; }
|
|
public DeviceStatus CurrentStatus { get; }
|
|
public string? Message { get; }
|
|
public DateTime Timestamp { get; }
|
|
|
|
public DeviceStatusChangedEventArgs(
|
|
DeviceStatus previousStatus,
|
|
DeviceStatus currentStatus,
|
|
string? message = null)
|
|
{
|
|
PreviousStatus = previousStatus;
|
|
CurrentStatus = currentStatus;
|
|
Message = message;
|
|
Timestamp = DateTime.UtcNow;
|
|
}
|
|
}
|
|
|