Skip to content

Commit

Permalink
fix: nullable query units
Browse files Browse the repository at this point in the history
  • Loading branch information
DadiBit committed Jun 4, 2023
1 parent bc6fb2a commit 5d7ffd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/src/main/kotlin/com/openmeteo/api/Forecast.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ object Forecast {
override val currentWeather: Boolean? = null,
override val timezone: Timezone? = null,
@SerialName("temperature_unit")
override val temperatureUnit: TemperatureUnit,
override val temperatureUnit: TemperatureUnit? = null,
@SerialName("windspeed_unit")
override val windSpeedUnit: WindSpeedUnit,
override val windSpeedUnit: WindSpeedUnit? = null,
@SerialName("precipitation_unit")
override val precipitationUnit: PrecipitationUnit,
override val precipitationUnit: PrecipitationUnit? = null,
) : Q.Coordinate, Q.Daily, Q.Hourly, Q.TimeFormat, Q.DateRange,
Q.PastDays, Q.ForecastDays, Q.CurrentWeather, Q.Timezone,
Q.TemperatureUnit, Q.WindSpeedUnit, Q.PrecipitationUnit
Expand Down
6 changes: 3 additions & 3 deletions lib/src/main/kotlin/com/openmeteo/api/common/query/Query.kt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ interface Query {
/**
* The requested temperature unit
*/
val temperatureUnit: com.openmeteo.api.common.units.TemperatureUnit
val temperatureUnit: com.openmeteo.api.common.units.TemperatureUnit?
}

/**
Expand All @@ -170,7 +170,7 @@ interface Query {
/**
* The requested wind speed unit
*/
val windSpeedUnit: com.openmeteo.api.common.units.WindSpeedUnit
val windSpeedUnit: com.openmeteo.api.common.units.WindSpeedUnit?
}

/**
Expand All @@ -180,7 +180,7 @@ interface Query {
/**
* The requested wind speed unit
*/
val precipitationUnit: com.openmeteo.api.common.units.PrecipitationUnit
val precipitationUnit: com.openmeteo.api.common.units.PrecipitationUnit?
}

}

0 comments on commit 5d7ffd9

Please sign in to comment.