Package com.aerisweather.aeris.response
Class AerisFriendlyResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- Direct Known Subclasses:
AdvisoriesResponse
,AirQualityResponse
,ConvectiveOutlookResponse
,CountriesResponse
,EarthquakesResponse
,FiresResponse
,IndicesResponse
,LightningResponse
,MoonphasesResponse
,NormStationsResponse
,ObservationResponse
,PeriodsResponse
,PhrasesResponse
,PlacesResponse
,RecordsResponse
,RiversGaugesResponse
,RiversResponse
,StormCellResponse
,StormReportsResponse
,SunmoonResponse
,TideStationsResponse
public abstract class AerisFriendlyResponse extends Object
Abstract class that helps allow access to the AerisDataJSON to determine what information is accessible to the AerisResponse.
-
-
Field Summary
Fields Modifier and Type Field Description protected AerisDataJSON
response
Data to allow access to.
-
Constructor Summary
Constructors Constructor Description AerisFriendlyResponse(AerisDataJSON data)
Constructor to hold the AerisDataJSON.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDataSource()
Get the data source from the response.String
getId()
Get the id from the response.AerisLocation
getLocation()
Gets the Aeris location from the response.Place
getPlace()
Get the place from the responseProfile
getProfile()
Get the profile for this response.String
getProfileTimezone()
Get the timezone for the profile.RelativeTo
getRelative()
Get the relative to for the response.
-
-
-
Field Detail
-
response
protected AerisDataJSON response
Data to allow access to.
-
-
Constructor Detail
-
AerisFriendlyResponse
public AerisFriendlyResponse(AerisDataJSON data)
Constructor to hold the AerisDataJSON.- Parameters:
data
- the JSON
-
-
Method Detail
-
getId
public String getId()
Get the id from the response.- Returns:
- the id for the response.
-
getDataSource
public String getDataSource()
Get the data source from the response.- Returns:
- the data source for the response.
-
getPlace
public Place getPlace()
Get the place from the response- Returns:
- The place
-
getProfile
public Profile getProfile()
Get the profile for this response.- Returns:
- The profile
-
getProfileTimezone
public String getProfileTimezone()
Get the timezone for the profile.- Returns:
- the timezone.
-
getRelative
public RelativeTo getRelative()
Get the relative to for the response.- Returns:
- The relative to
-
getLocation
public AerisLocation getLocation()
Gets the Aeris location from the response.- Returns:
- the location
-
-