Files
gitea_admin 24729ee267 Apply code formatting cleanup across monitor projects
- Reindent appsettings.json and the MSBuild project files
- Collapse single-statement guard blocks and tidy using and member order
- Normalize XML doc indentation and file endings
- Reorder BatteryMonitor test-data helpers and move the exclusion tests into
  their own region
- Carry the same formatting through the boiler config, control, entity and
  test files
2026-11-30 11:52:06 +02:00

18 lines
885 B
C#

namespace PowerMonitorManager.Models;
public sealed class PowerUpdateContext
{
public required PowerCalculationResult Calculation { get; init; }
public required double CurrentNordPoolPrice { get; init; }
public required string PriceUnit { get; init; }
public required string PriceSource { get; init; }
public required IReadOnlyDictionary<string, CostSnapshot> DeviceCosts { get; init; }
public required CostSnapshot TotalCost { get; init; }
public required CostSnapshot OtherCost { get; init; }
public required bool IsAnomaly { get; init; }
public required TimeSpan AnomalyDuration { get; init; }
public required double AnomalyThresholdWatts { get; init; }
public required int TrackedSensorCount { get; init; }
public required IReadOnlyList<string> DegradedSensors { get; init; }
public required string SystemStatus { get; init; }
}