namespace ZB.MOM.WW.LmxOpcUa.Client.Shared.Models; /// /// Event data for an alarm or condition notification from the OPC UA server. /// public sealed class AlarmEventArgs : EventArgs { /// The name of the source object that raised the alarm. public string SourceName { get; } /// The condition type name. public string ConditionName { get; } /// The alarm severity (0-1000). public ushort Severity { get; } /// Human-readable alarm message. public string Message { get; } /// Whether the alarm should be retained in the display. public bool Retain { get; } /// Whether the alarm condition is currently active. public bool ActiveState { get; } /// Whether the alarm has been acknowledged. public bool AckedState { get; } /// The time the event occurred. public DateTime Time { get; } public AlarmEventArgs( string sourceName, string conditionName, ushort severity, string message, bool retain, bool activeState, bool ackedState, DateTime time) { SourceName = sourceName; ConditionName = conditionName; Severity = severity; Message = message; Retain = retain; ActiveState = activeState; AckedState = ackedState; Time = time; } }