mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-01-09 03:26:45 +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) {
|
if (snowNode != null) {
|
||||||
final JsonNode OneHourNode = snowNode.get("1h");
|
final JsonNode OneHourNode = snowNode.get("1h");
|
||||||
if (OneHourNode != null) {
|
if (OneHourNode != null) {
|
||||||
Rain.withOneHourLevelValue(OneHourNode.asDouble());
|
return Snow.withOneHourLevelValue(OneHourNode.asDouble());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user