Package com.aerisweather.aeris.response
Class ConditionsSummaryResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.PeriodsResponse<ConditionsSummaryPeriod>
-
- com.aerisweather.aeris.response.ConditionsSummaryResponse
-
public class ConditionsSummaryResponse extends PeriodsResponse<ConditionsSummaryPeriod>
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 ConditionsSummaryResponse(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.-
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, getProfileTimezone, getRelative
-
-
-
-
Constructor Detail
-
ConditionsSummaryResponse
public ConditionsSummaryResponse(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
-
-