Files
HomeAssistant/NordPool.Manager/Models/EntityUpdateContext.cs
T
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

22 lines
1.0 KiB
C#

using NordPool.Models;
namespace NordPoolManager.Models;
public record EntityUpdateContext
{
public required double CurrentPrice { get; init; }
public required string? UnitOfMeasurement { get; init; }
public required int DayQuartersIndex { get; init; }
public required DateTime? LastApiUpdateDate { get; init; }
public required bool UsingCachedData { get; init; }
public required NordPoolPrice? TodayNordPoolPrice { get; init; }
public required NordPoolPrice? TomorrowNordPoolPrice { get; init; }
public required IReadOnlyList<CheapestIntervalResult>? CheapestIntervals { get; init; }
public required double ConfiguredHours { get; init; }
public required int ConfiguredIntervalCount { get; init; }
public required double ConfiguredPriceCap { get; init; }
public required bool SkipPriceCap { get; init; }
public required string? ConfiguredReadyBy { get; init; }
public required bool IsNowCheap { get; init; }
public required DateTime? NextCheapIntervalStart { get; init; }
}