namespace InnovEnergy.Lib.Devices.WITGrowatt4_15K; public class WitGrowattDevicesRecord { public static WitGrowattDevicesRecord Null => new WitGrowattDevicesRecord(Array.Empty()); public WitGrowattDevicesRecord(IReadOnlyList devices) { Devices = devices; } public IReadOnlyList Devices { get; init; } //public IEnumerable Alarms => new []{AlarmMessage.}; //Devices.SelectMany(d => d.Status.Alarms).Distinct(); //public IEnumerable Warnings => new []{WarningMessage.DcOffset}; //Devices.SelectMany(d => d.Status.Warnings).Distinct(); //public IEnumerable Alarms => Devices.SelectMany(d => d.Status.Alarms).Distinct(); //public IEnumerable Warnings => Devices.SelectMany(d => d.Status.Warnings).Distinct(); }