From 49d7237c7958e6e2eeed513ce6f6069cfacb06ae Mon Sep 17 00:00:00 2001 From: ig Date: Tue, 20 Jun 2023 09:50:47 +0200 Subject: [PATCH] introduce AmptStatus.Null --- csharp/Lib/Devices/AMPT/AmptStatus.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/csharp/Lib/Devices/AMPT/AmptStatus.cs b/csharp/Lib/Devices/AMPT/AmptStatus.cs index 6f1b2af0d..2b3df5422 100644 --- a/csharp/Lib/Devices/AMPT/AmptStatus.cs +++ b/csharp/Lib/Devices/AMPT/AmptStatus.cs @@ -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 strings) + public AmptStatus(DcBus? dc, IReadOnlyList strings) { Dc = dc; Strings = strings; } - public DcBus Dc { get; } + public DcBus? Dc { get; } public IReadOnlyList Strings { get; } + + public static AmptStatus Null { get; } = new AmptStatus(null, Array.Empty()); }