rename Ac1 in IAc1Connection to plain Ac
This commit is contained in:
parent
d5c5239744
commit
476a0a0fe2
|
@ -4,5 +4,5 @@ namespace InnovEnergy.Lib.StatusApi.Connections;
|
|||
|
||||
public interface IAc1Connection
|
||||
{
|
||||
Ac1Phase Ac1 { get; }
|
||||
Ac1Phase Ac { get; }
|
||||
}
|
|
@ -1,17 +1,12 @@
|
|||
using InnovEnergy.Lib.Utils;
|
||||
|
||||
namespace InnovEnergy.Lib.StatusApi;
|
||||
|
||||
public abstract record DeviceStatus
|
||||
{
|
||||
public String DeviceType
|
||||
{
|
||||
get
|
||||
{
|
||||
var t = GetType();
|
||||
|
||||
while (!t!.IsAbstract)
|
||||
t = t.BaseType;
|
||||
|
||||
return t.Name.Replace("Status", "");
|
||||
}
|
||||
}
|
||||
public String DeviceType => GetType()
|
||||
.Generate(t => t.BaseType!)
|
||||
.First(t => t.IsAbstract)
|
||||
.Name
|
||||
.Replace("Status", "");
|
||||
}
|
|
@ -3,7 +3,7 @@ using InnovEnergy.Lib.Units.Composite;
|
|||
|
||||
namespace InnovEnergy.Lib.StatusApi;
|
||||
|
||||
public abstract record SinglePhaseInverterStatus(Ac1Phase Ac1, DcPhase Dc) :
|
||||
public abstract record SinglePhaseInverterStatus(Ac1Phase Ac, DcPhase Dc) :
|
||||
DeviceStatus,
|
||||
IAc1Connection,
|
||||
IDcConnection;
|
||||
|
|
|
@ -3,7 +3,7 @@ using InnovEnergy.Lib.Units.Composite;
|
|||
|
||||
namespace InnovEnergy.Lib.StatusApi;
|
||||
|
||||
public abstract record SinglePhasePvInverterStatus(Ac1Phase Ac1, IReadOnlyList<DcPhase> Strings) :
|
||||
public abstract record SinglePhasePvInverterStatus(Ac1Phase Ac, IReadOnlyList<DcPhase> Strings) :
|
||||
DeviceStatus,
|
||||
IAc1Connection,
|
||||
IPvConnection;
|
||||
|
|
Loading…
Reference in New Issue