Package com.aerisweather.aeris.response
Class ForecastsResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.PeriodsResponse<ForecastPeriod>
-
- com.aerisweather.aeris.response.ForecastsResponse
-
public class ForecastsResponse extends PeriodsResponse<ForecastPeriod>
Object to make theforecasts
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.PeriodsResponse
clazz, periods
-
Fields inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
response
-
-
Constructor Summary
Constructors Constructor Description ForecastsResponse(AerisDataJSON data)
Constructor the the forecasts response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInterval()
Get the interval stringAerisLocation
getLocation()
Gets the Aeris location from the response.String
getProfileTimezone()
Get the timezone for the profile.-
Methods inherited from class com.aerisweather.aeris.response.PeriodsResponse
getPeriod, getPeriods, getPeriodsSize
-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getId, getPlace, getProfile, getRelative
-
-
-
-
Constructor Detail
-
ForecastsResponse
public ForecastsResponse(AerisDataJSON data)
Constructor the the forecasts response. Wraps the JSON data into a friendlier object to determine what data is available.- 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
-
getInterval
public String getInterval()
Get the interval string- Returns:
- the type of interval
-
getProfileTimezone
public String getProfileTimezone()
Description copied from class:AerisFriendlyResponse
Get the timezone for the profile.- Overrides:
getProfileTimezone
in classAerisFriendlyResponse
- Returns:
- the timezone.
-
-