Refactor UpdateCheapestIntervals logic to return a result object and improve code readability. Introduce CheapestIntervalsUpdateResult model for encapsulating update details and simplify inline tuples.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace NordPoolManager.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Result of updating cheapest intervals, containing the effective configuration used for the update.
|
||||
/// </summary>
|
||||
public class CheapestIntervalsUpdateResult
|
||||
{
|
||||
public int IntervalCount { get; init; }
|
||||
public double PriceCap { get; init; }
|
||||
public bool SkipPriceCap { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user