2023-02-21 06:27:20 +00:00
|
|
|
using InnovEnergy.Lib.StatusApi.Phases;
|
|
|
|
namespace InnovEnergy.Lib.StatusApi.Connections;
|
|
|
|
|
|
|
|
|
2023-02-22 13:46:36 +00:00
|
|
|
public record DcConnection(Decimal Voltage, Decimal Current) : Phase(Voltage, Current)
|
2023-02-21 06:27:20 +00:00
|
|
|
{
|
2023-02-23 12:45:09 +00:00
|
|
|
public Decimal Power => (Current * Voltage).Round3();
|
2023-02-21 06:27:20 +00:00
|
|
|
}
|