using DMS.Application.DTOs; using DMS.Core.Enums; namespace DMS.Application.Events { /// /// MQTT服务器变更事件参数 /// public class MqttServerChangedEventArgs : System.EventArgs { /// /// 变更类型 /// public ActionChangeType ChangeType { get; } /// /// MQTT服务器DTO /// public MqttServerDto MqttServer { get; } /// /// 发生变化的属性类型 /// public MqttServerPropertyType PropertyType { get; } /// /// 构造函数 /// /// 变更类型 /// MQTT服务器DTO /// 发生变化的属性类型 public MqttServerChangedEventArgs(ActionChangeType changeType, MqttServerDto mqttServer, MqttServerPropertyType propertyType = MqttServerPropertyType.All) { ChangeType = changeType; MqttServer = mqttServer; PropertyType = propertyType; } } }