introduce AmptStatus.Null
This commit is contained in:
parent
5828498109
commit
49d7237c79
|
@ -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>());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue