Package com.aerisweather.aeris.response
Class NormStationsResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.NormStationsResponse
-
public class NormStationsResponse extends AerisFriendlyResponse
Object to make thenormals/stationsendpoint 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.AerisFriendlyResponse
response
-
-
Constructor Summary
Constructors Constructor Description NormStationsResponse(AerisDataJSON data)Constructor the the normals/stations response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Get the id from the response.AerisLocationgetLocation()Gets the Aeris location from the response.PlacegetPlace()Get the place from the responseProfilegetProfile()Get the profile for this response.RelativeTogetRelative()Get the relative to for the response.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getProfileTimezone
-
-
-
-
Constructor Detail
-
NormStationsResponse
public NormStationsResponse(AerisDataJSON data)
Constructor the the normals/stations 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:AerisFriendlyResponseGet the id from the response.- Overrides:
getIdin classAerisFriendlyResponse- Returns:
- the id for the response.
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponseGet the place from the response- Overrides:
getPlacein classAerisFriendlyResponse- Returns:
- The place
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponseGets the Aeris location from the response.- Overrides:
getLocationin classAerisFriendlyResponse- Returns:
- the location
-
getProfile
public Profile getProfile()
Description copied from class:AerisFriendlyResponseGet the profile for this response.- Overrides:
getProfilein classAerisFriendlyResponse- Returns:
- The profile
-
getRelative
public RelativeTo getRelative()
Description copied from class:AerisFriendlyResponseGet the relative to for the response.- Overrides:
getRelativein classAerisFriendlyResponse- Returns:
- The relative to
-
-