Package com.aerisweather.aeris.response
Class PlacesAirportsResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.PlacesResponse
-
- com.aerisweather.aeris.response.PlacesAirportsResponse
-
public class PlacesAirportsResponse extends PlacesResponse
Object to make theplaces/airports
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 PlacesAirportsResponse(AerisDataJSON data)
Constructor the the places/airports response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Get the id from the response.RelativeTo
getRelative()
Get the relative to for the response.-
Methods inherited from class com.aerisweather.aeris.response.PlacesResponse
getLocation, getPlace, getProfile
-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getProfileTimezone
-
-
-
-
Constructor Detail
-
PlacesAirportsResponse
public PlacesAirportsResponse(AerisDataJSON data)
Constructor the the places/airports 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 classPlacesResponse
- Returns:
- The relative to
-
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.
-
-