7f0ebcf826
Made-with: Cursor
16 lines
560 B
C#
16 lines
560 B
C#
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);
|
|
}
|