Package com.aerisweather.aeris.response
Class CountriesResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.CountriesResponse
-
public class CountriesResponse extends AerisFriendlyResponse
Object to make thecountriesendpoint 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 CountriesResponse(AerisDataJSON data)Constructor the the countries Response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlacegetPlace()Get the place from the responseProfilegetProfile()Get the profile for this response.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getId, getLocation, getProfileTimezone, getRelative
-
-
-
-
Constructor Detail
-
CountriesResponse
public CountriesResponse(AerisDataJSON data)
Constructor the the countries Response. Wraps the JSON data into a friendlier object to determine what data is available.- Parameters:
data- JSON data
-
-
Method Detail
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponseGet the place from the response- Overrides:
getPlacein classAerisFriendlyResponse- Returns:
- The place
-
getProfile
public Profile getProfile()
Description copied from class:AerisFriendlyResponseGet the profile for this response.- Overrides:
getProfilein classAerisFriendlyResponse- Returns:
- The profile
-
-