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