feat: add PowerCostCalculationService with per-device cost accumulators
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using PowerMonitorManager.Models;
|
||||
|
||||
namespace PowerMonitorManager.Interface;
|
||||
|
||||
public interface IPowerCostCalculationService
|
||||
{
|
||||
void RecordCosts(PowerCalculationResult calculation, double nordPoolPrice, int pollIntervalSeconds, DateTime now);
|
||||
CostSnapshot GetTotalCostSnapshot();
|
||||
CostSnapshot GetOtherCostSnapshot();
|
||||
CostSnapshot GetDeviceCostSnapshot(string entityId);
|
||||
IReadOnlyDictionary<string, CostSnapshot> GetAllDeviceCostSnapshots();
|
||||
double LastKnownPrice { get; }
|
||||
string PriceSource { get; }
|
||||
void SetPrice(double price);
|
||||
}
|
||||
Reference in New Issue
Block a user