Class OneCallWeatherResponseMapper
java.lang.Object
com.github.prominence.openweathermap.api.mapper.OneCallWeatherResponseMapper
Object mapper for OneCall API response.
-
Constructor Summary
ConstructorsConstructorDescriptionOneCallWeatherResponseMapper(UnitSystem unitSystem) Instantiates a new forecast response mapper. -
Method Summary
Modifier and TypeMethodDescriptionmapToCurrent(String json) Maps current weather data response into java object.mapToHistorical(String json) Maps current weather data response into java object.
-
Constructor Details
-
OneCallWeatherResponseMapper
Instantiates a new forecast response mapper.- Parameters:
unitSystem- the unit system
-
-
Method Details
-
mapToCurrent
Maps current weather data response into java object.- Parameters:
json- the json string- Returns:
- the current data object
-
mapToHistorical
Maps current weather data response into java object.- Parameters:
json- the json string- Returns:
- the current data object
-