Package com.aerisweather.aeris.response
Class NormalsResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.PeriodsResponse<NormalPeriod>
-
- com.aerisweather.aeris.response.NormalsResponse
-
public class NormalsResponse extends PeriodsResponse<NormalPeriod>
Object to make thenormals
endpoint response more friendly to determine what parts of the AerisDataJSON have come back in the response.
-
-
Field Summary
-
Fields inherited from class com.aerisweather.aeris.response.PeriodsResponse
clazz, periods
-
Fields inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
response
-
-
Constructor Summary
Constructors Constructor Description NormalsResponse(AerisDataJSON data)
Constructor the the normals response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Get the id from the response.AerisLocation
getLocation()
Gets the Aeris location from the response.Place
getPlace()
Get the place from the responseRelativeTo
getRelative()
Get the relative to for the response.-
Methods inherited from class com.aerisweather.aeris.response.PeriodsResponse
getPeriod, getPeriods, getPeriodsSize
-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getProfile, getProfileTimezone
-
-
-
-
Constructor Detail
-
NormalsResponse
public NormalsResponse(AerisDataJSON data)
Constructor the the normals response. Wraps the JSON data into a friendlier object to determine what data is available.- Parameters:
data
- JSON data
-
-
Method Detail
-
getId
public String getId()
Description copied from class:AerisFriendlyResponse
Get the id from the response.- Overrides:
getId
in classAerisFriendlyResponse
- Returns:
- the id for the response.
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponse
Gets the Aeris location from the response.- Overrides:
getLocation
in classAerisFriendlyResponse
- Returns:
- the location
-
getRelative
public RelativeTo getRelative()
Description copied from class:AerisFriendlyResponse
Get the relative to for the response.- Overrides:
getRelative
in classAerisFriendlyResponse
- Returns:
- The relative to
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponse
Get the place from the response- Overrides:
getPlace
in classAerisFriendlyResponse
- Returns:
- The place
-
-