Package-level declarations

Types

Link copied to clipboard
@Serializable
data class DataPointResponse(val date: LocalDate, val predictedConsumption: Double)

API representation of a single daily prediction.

Link copied to clipboard
@Serializable
data class ForecastListResponse(val forecasts: List<ForecastResponse>)

Container response for lists of forecasts.

Link copied to clipboard
@Serializable
data class ForecastResponse(val id: String, val utilityType: UtilityTypeDto, val dataPoints: List<DataPointResponse>, val computedAt: Instant, val startDate: LocalDate, val endDate: LocalDate, val durationDays: Long)

API response representing a single forecast.

Link copied to clipboard
@Serializable
enum UtilityTypeDto : Enum<UtilityTypeDto>

Supported utility types exposed by the HTTP API.

Functions

Link copied to clipboard

Convert a list of domain forecasts to a ForecastListResponse.