using System; using DMS.Core.Enums; namespace DMS.Application.DTOs.Events { /// /// 设备变更事件参数 /// public class DeviceChangedEventArgs : System.EventArgs { /// /// 变更类型 /// public DataChangeType ChangeType { get; } /// /// 设备DTO /// public DeviceDto Device { get; } /// /// 变更时间 /// public DateTime ChangeTime { get; } /// /// 构造函数 /// /// 变更类型 /// 设备DTO public DeviceChangedEventArgs(DataChangeType changeType, DeviceDto device) { ChangeType = changeType; Device = device; ChangeTime = DateTime.Now; } } }