Daily

@Serializable
data class Daily(val time: List<String>, val weatherCode: List<Int>, val maxTemps: List<Double>, val minTemps: List<Double>, val sunrise: List<String>, val sunset: List<String>, val uvIndex: List<Double>, val rainAmount: List<Double>, val rainChance: List<Int>, val windSpeed: List<Double>)

Ktor serializable class for the daily weather data.

Contains the daily weather information for the next 14 days.

Constructors

Link copied to clipboard
constructor(time: List<String>, weatherCode: List<Int>, maxTemps: List<Double>, minTemps: List<Double>, sunrise: List<String>, sunset: List<String>, uvIndex: List<Double>, rainAmount: List<Double>, rainChance: List<Int>, windSpeed: List<Double>)

Properties

Link copied to clipboard
@SerialName(value = "temperature_2m_max")
val maxTemps: List<Double>

The maximum temperature in Celsius.

Link copied to clipboard
@SerialName(value = "temperature_2m_min")
val minTemps: List<Double>

The minimum temperature in Celsius.

Link copied to clipboard
@SerialName(value = "precipitation_sum")
val rainAmount: List<Double>

The precipitation amount in mm.

Link copied to clipboard
@SerialName(value = "precipitation_probability_max")
val rainChance: List<Int>

The precipitation probability in percentage.

Link copied to clipboard

The sunrise time.

Link copied to clipboard

The sunset time.

Link copied to clipboard

The time of the weather data.

Link copied to clipboard
@SerialName(value = "uv_index_max")
val uvIndex: List<Double>

The maximum UV index.

Link copied to clipboard
@SerialName(value = "weather_code")
val weatherCode: List<Int>

The weather condition code.

Link copied to clipboard
@SerialName(value = "wind_speed_10m_max")
val windSpeed: List<Double>