Innovenergy_trunk/csharp/Lib/StatusApi/Connections/DcConnection.cs

8 lines
239 B
C#

using InnovEnergy.Lib.StatusApi.Phases;
namespace InnovEnergy.Lib.StatusApi.Connections;
public record DcConnection(Decimal Voltage, Decimal Current) : Phase(Voltage, Current)
{
public Decimal Power => (Current * Voltage).Round3();
}