Package com.aerisweather.aeris.response
Class PhrasesResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.PhrasesResponse
-
public class PhrasesResponse extends AerisFriendlyResponse
Object to make the Phrases 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 PhrasesResponse(AerisDataJSON data)
Constructor the the Phrases Response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AerisLocation
getLocation()
Gets the Aeris location from the response.Phrase
getPhrases()
Place
getPlace()
Get the place from the responseString
getProfileTimezone()
Get the timezone for the profile.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getId, getProfile, getRelative
-
-
-
-
Constructor Detail
-
PhrasesResponse
public PhrasesResponse(AerisDataJSON data)
Constructor the the Phrases Response.- Parameters:
data
- JSON data
-
-
Method Detail
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponse
Gets the Aeris location from the response.- Overrides:
getLocation
in classAerisFriendlyResponse
- Returns:
- the location
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponse
Get the place from the response- Overrides:
getPlace
in classAerisFriendlyResponse
- Returns:
- The place
-
getProfileTimezone
public String getProfileTimezone()
Description copied from class:AerisFriendlyResponse
Get the timezone for the profile.- Overrides:
getProfileTimezone
in classAerisFriendlyResponse
- Returns:
- the timezone.
-
getPhrases
public Phrase getPhrases()
-
-