mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-01-08 11:16:47 +03:00
#60 Fixed snow parsing.
This commit is contained in:
parent
249ee09c7e
commit
185f4cbe8c
@ -418,7 +418,7 @@ public class OneCallWeatherResponseMapper {
|
||||
if (snowNode != null) {
|
||||
final JsonNode OneHourNode = snowNode.get("1h");
|
||||
if (OneHourNode != null) {
|
||||
Rain.withOneHourLevelValue(OneHourNode.asDouble());
|
||||
return Snow.withOneHourLevelValue(OneHourNode.asDouble());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user