introduce AmptStatus.Null

This commit is contained in:
ig 2023-06-20 09:50:47 +02:00
parent 5828498109
commit 49d7237c79
1 changed files with 5 additions and 4 deletions

View File

@ -1,18 +1,19 @@
using InnovEnergy.Lib.StatusApi.DeviceTypes;
using InnovEnergy.Lib.Units.Composite;
namespace InnovEnergy.Lib.Devices.AMPT;
public class AmptStatus : IMppt
public class AmptStatus
{
public AmptStatus(DcBus dc, IReadOnlyList<DcBus> strings)
public AmptStatus(DcBus? dc, IReadOnlyList<DcBus> strings)
{
Dc = dc;
Strings = strings;
}
public DcBus Dc { get; }
public DcBus? Dc { get; }
public IReadOnlyList<DcBus> Strings { get; }
public static AmptStatus Null { get; } = new AmptStatus(null, Array.Empty<DcBus>());
}