Current

@Serializable
data class Current(val time: String, val temp: Double, val humidity: Int, val feelsLike: Double, val precipitation: Double, val weather_code: Int, val windSpeed: Double, val pressure: Double)

Ktor serializable class for the weather data. Contains the current weather data.

Constructors

Link copied to clipboard
constructor(time: String, temp: Double, humidity: Int, feelsLike: Double, precipitation: Double, weather_code: Int, windSpeed: Double, pressure: Double)

Properties

Link copied to clipboard
@SerialName(value = "apparent_temperature")
val feelsLike: Double

The apparent temperature in Celsius.

Link copied to clipboard
@SerialName(value = "relative_humidity_2m")
val humidity: Int

The relative humidity in percentage.

Link copied to clipboard

The precipitation amount in mm.

Link copied to clipboard
@SerialName(value = "surface_pressure")
val pressure: Double

The surface pressure in hPa.

Link copied to clipboard
@SerialName(value = "temperature_2m")
val temp: Double

The temperature in Celsius.

Link copied to clipboard

The time of the weather data.

Link copied to clipboard

The weather condition code.

Link copied to clipboard
@SerialName(value = "wind_speed_10m")
val windSpeed: Double

The wind speed in m/s.