using System.Text.Json; using NordPool.Models; namespace NordPoolManager.Interface; public interface INordPoolPriceService { NordPoolPrice? TodayNordPoolPrice { get; } NordPoolPrice? TomorrowNordPoolPrice { get; } double CurrentPrice { get; } int DayQuartersIndex { get; } DateTime? LastUpdatedDate { get; } DateOnly? LastFetchedDate { get; } Task FetchPricesAsync(Func> fetchPricesForDate); NordPoolPrice ParseAndAdjust(JsonElement? element); void UpdateCurrentPrice(); double GetCurrentPrice(); bool ShouldFetchNewPrices(DateOnly dateOnly); void RollOverPrices(DateOnly date); }