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?

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

Air humidity in percent

Link copied to clipboard

The weather icon

Link copied to clipboard

Location name

Link copied to clipboard

The maximum temperature

Link copied to clipboard

The minimum temperature

Link copied to clipboard

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

Link copied to clipboard

Precipitation

Link copied to clipboard

Air pressure

Link copied to clipboard

Provider name

Link copied to clipboard

Url to the provider and more weather information

Link copied to clipboard

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

Wind direction in degrees

Link copied to clipboard

Wind speed