public HomeConsumptionDaily( DateTime date, DayConsumptionSource consumption, DayConsumptionSource grid, DayConsumptionSource solarConsumption, DayConsumptionSource batteryConsumption, DayConsumptionSource batteryCharge, DayConsumptionSource solarExported) { Battery = batteryConsumption; Consumption = consumption; Solar = solarConsumption; Grid = grid; Date = date; BatteryEstimate = GetEstimate(); BatteryCharge = batteryCharge; SolarExported = solarExported; // missing battery exported }
public PowerMovementDaily(DateTime date, DayConsumptionSource consumption, DayConsumptionSource solarToHome, DayConsumptionSource solarToBattery, DayConsumptionSource solarToGrid, DayConsumptionSource gridToBattery, DayConsumptionSource gridToHome, DayConsumptionSource batteryToHome, DayConsumptionSource batteryToGrid) { Date = date; Consumption = consumption; SolarToHome = solarToHome; SolarToBattery = solarToBattery; SolarToGrid = solarToGrid; GridToBattery = gridToBattery; GridToHome = gridToHome; BatteryToHome = batteryToHome; BatteryToGrid = batteryToGrid; }