Package com.aerisweather.aeris.response
Class IndicesResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.IndicesResponse
-
public class IndicesResponse extends AerisFriendlyResponse
Object to make the Indice 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 IndicesResponse(AerisDataJSON data)Constructor the the Indice Response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndicegetIndice()AerisLocationgetLocation()Gets the Aeris location from the response.PlacegetPlace()Get the place from the responseStringgetProfileTimezone()Get the timezone for the profile.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getId, getProfile, getRelative
-
-
-
-
Constructor Detail
-
IndicesResponse
public IndicesResponse(AerisDataJSON data)
Constructor the the Indice Response.- Parameters:
data- JSON data
-
-
Method Detail
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponseGets the Aeris location from the response.- Overrides:
getLocationin classAerisFriendlyResponse- Returns:
- the location
-
getIndice
public Indice getIndice()
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponseGet the place from the response- Overrides:
getPlacein classAerisFriendlyResponse- Returns:
- The place
-
getProfileTimezone
public String getProfileTimezone()
Description copied from class:AerisFriendlyResponseGet the timezone for the profile.- Overrides:
getProfileTimezonein classAerisFriendlyResponse- Returns:
- the timezone.
-
-