Refactor boiler control and price logic: Introduce PriceConsts, improve BoilerAction handling with switch, and update namespaces for better structure.

This commit is contained in:
Marius
2026-03-16 12:08:14 +02:00
parent 42b1fe3b18
commit 17a2e67078
8 changed files with 34 additions and 19 deletions
@@ -0,0 +1,9 @@
namespace NordPoolManager.Models.Consts;
public static class ConversionConsts
{
public const double MegawattToKilowattDivisor = 1000.0;
public const double VatRate = 1.21; // 21% VAT (PVM)
public const double EuroToCentsMultiplier = 100.0;
public const int PriceDecimalPlaces = 2;
}
@@ -0,0 +1,7 @@
namespace NordPoolManager.Models.Consts;
public static class PriceConsts
{
public const int MaxDailyIntervals = 96;
public const int IntervalsPerHour = 4;
}