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 theforecastsendpoint 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 StringgetInterval()Get the interval stringAerisLocationgetLocation()Gets the Aeris location from the response.StringgetProfileTimezone()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:AerisFriendlyResponseGets the Aeris location from the response.- Overrides:
getLocationin 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:AerisFriendlyResponseGet the timezone for the profile.- Overrides:
getProfileTimezonein classAerisFriendlyResponse- Returns:
- the timezone.
-
-