Forecast

data class Forecast(val timestamp: Long, val createdAt: Long = System.currentTimeMillis(), val temperature: Temperature, val condition: String, val icon: WeatherIcon, val night: Boolean = false, val minTemp: Temperature? = null, val maxTemp: Temperature? = null, val pressure: Pressure? = null, val humidity: Int? = null, val windSpeed: WindSpeed? = null, val windDirection: Double? = null, val precipitation: Precipitation? = null, val rainProbability: Int? = null, val clouds: Int? = null, val location: String, val provider: String, val providerUrl: String? = null)

Constructors

Link copied to clipboard
constructor(timestamp: Long, createdAt: Long = System.currentTimeMillis(), temperature: Temperature, condition: String, icon: WeatherIcon, night: Boolean = false, minTemp: Temperature? = null, maxTemp: Temperature? = null, pressure: Pressure? = null, humidity: Int? = null, windSpeed: WindSpeed? = null, windDirection: Double? = null, precipitation: Precipitation? = null, rainProbability: Int? = null, clouds: Int? = null, location: String, provider: String, providerUrl: String? = null)

Properties

Link copied to clipboard
val clouds: Int? = null

Clouds in percent

Link copied to clipboard

The weather condition

Link copied to clipboard

Unix timestamp of the time that this forecast was created, in milliseconds

Link copied to clipboard
val humidity: Int? = null

Air humidity in percent

Link copied to clipboard

The weather icon

Link copied to clipboard

Location name

Link copied to clipboard
val maxTemp: Temperature? = null

The maximum temperature

Link copied to clipboard
val minTemp: Temperature? = null

The minimum temperature

Link copied to clipboard
val night: Boolean = false

If true, weather icons will use the moon icon instead of the sun icon

Link copied to clipboard

Precipitation

Link copied to clipboard
val pressure: Pressure? = null

Air pressure

Link copied to clipboard

Provider name

Link copied to clipboard
val providerUrl: String? = null

Url to the provider and more weather information

Link copied to clipboard
val rainProbability: Int? = null

Rain probability in percent

Link copied to clipboard

The temperature

Link copied to clipboard

Unix timestamp of the time that this forecast is valid for, in milliseconds

Link copied to clipboard
val windDirection: Double? = null

Wind direction in degrees

Link copied to clipboard
val windSpeed: WindSpeed? = null

Wind speed