using System; namespace AMWD.Protocols.Modbus.Common.Events { /// /// Represents the coil written event arguments. /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public class CoilWrittenEventArgs : EventArgs { internal CoilWrittenEventArgs(byte unitId, ushort address, bool value) { UnitId = unitId; Address = address; Value = value; } /// /// Gets or sets the unit id. /// public byte UnitId { get; } /// /// Gets or sets the coil address. /// public ushort Address { get; } /// /// Gets or sets the coil value. /// public bool Value { get; } } }