From 8980ece8df9af0aba15fb9863c2d6e3759eabcbf Mon Sep 17 00:00:00 2001 From: PranshulGG Date: Sat, 15 Aug 2026 16:06:20 +0530 Subject: [PATCH] update nws conditions --- .../core/model/weather/WeatherCondition.kt | 6 +++++- .../sources/weather/nws/NwsWeatherConditionMap.kt | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/pranshulgg/weather_master_app/core/model/weather/WeatherCondition.kt b/app/src/main/java/com/pranshulgg/weather_master_app/core/model/weather/WeatherCondition.kt index 1da1fd242..33d275f41 100644 --- a/app/src/main/java/com/pranshulgg/weather_master_app/core/model/weather/WeatherCondition.kt +++ b/app/src/main/java/com/pranshulgg/weather_master_app/core/model/weather/WeatherCondition.kt @@ -5,7 +5,11 @@ import com.pranshulgg.weather_master_app.R import com.pranshulgg.weather_master_app.core.model.domain.weather.WeatherDaily -// TODO: ADD SLEET, HAIL, WINDY, BLIZZARD, TORNADO, HURRICANE +// TODO: WINDY, BLIZZARD, TORNADO, HURRICANE +/** + * SLEET AND HAIL is supported but not mapped to many sources yet + * TODO: FIX IT + */ enum class WeatherCondition { CLEAR_SKY, OVERCAST, diff --git a/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/nws/NwsWeatherConditionMap.kt b/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/nws/NwsWeatherConditionMap.kt index 338e79f65..b640088c7 100644 --- a/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/nws/NwsWeatherConditionMap.kt +++ b/app/src/main/java/com/pranshulgg/weather_master_app/core/network/sources/weather/nws/NwsWeatherConditionMap.kt @@ -26,12 +26,12 @@ object NwsWeatherConditionMap { "wind_ovc" -> WeatherCondition.OVERCAST "snow" -> WeatherCondition.SNOW "rain_snow" -> WeatherCondition.LIGHT_SNOW - "rain_sleet" -> WeatherCondition.LIGHT_SNOW - "snow_sleet" -> WeatherCondition.LIGHT_SNOW - "fzra" -> WeatherCondition.RAIN - "rain_fzra" -> WeatherCondition.RAIN - "snow_fzra" -> WeatherCondition.SNOW - "sleet" -> WeatherCondition.SNOW + "rain_sleet" -> WeatherCondition.SLEET + "snow_sleet" -> WeatherCondition.SLEET + "fzra" -> WeatherCondition.HAIL + "rain_fzra" -> WeatherCondition.HAIL + "snow_fzra" -> WeatherCondition.HAIL + "sleet" -> WeatherCondition.SLEET "rain" -> WeatherCondition.RAIN "rain_showers" -> WeatherCondition.RAIN "rain_showers_hi" -> WeatherCondition.RAIN