Package com.aerisweather.aeris.response
Class PlacesResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.PlacesResponse
-
- Direct Known Subclasses:
PlacesAirportsResponse
,PostalcodesResponse
public class PlacesResponse extends AerisFriendlyResponse
Object to make theplaces
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.AerisFriendlyResponse
response
-
-
Constructor Summary
Constructors Constructor Description PlacesResponse(AerisDataJSON data)
Constructor the the places response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AerisLocation
getLocation()
Gets the Aeris location from the response.Place
getPlace()
Get the place from the responseProfile
getProfile()
Get the profile for this response.RelativeTo
getRelative()
Get the relative to for the response.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getId, getProfileTimezone
-
-
-
-
Constructor Detail
-
PlacesResponse
public PlacesResponse(AerisDataJSON data)
Constructor the the places response. Wraps the JSON data into a friendlier object to determine what data is available.- Parameters:
data
- JSON data
-
-
Method Detail
-
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
-
getProfile
public Profile getProfile()
Description copied from class:AerisFriendlyResponse
Get the profile for this response.- Overrides:
getProfile
in classAerisFriendlyResponse
- Returns:
- The profile
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponse
Gets the Aeris location from the response.- Overrides:
getLocation
in classAerisFriendlyResponse
- Returns:
- the location
-
-