Package com.aerisweather.aeris.response
Class ObArchiveResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.PeriodsResponse<ObservationPeriod>
-
- com.aerisweather.aeris.response.ObArchiveResponse
-
public class ObArchiveResponse extends PeriodsResponse<ObservationPeriod>
Object to make theobservations/archiveendpoint 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 ObArchiveResponse(AerisDataJSON data)Constructor the the observations/archive response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Get the id from the response.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.PeriodsResponse
getPeriod, getPeriods, getPeriodsSize
-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getProfile, getRelative
-
-
-
-
Constructor Detail
-
ObArchiveResponse
public ObArchiveResponse(AerisDataJSON data)
Constructor the the observations/archive response. Wraps the JSON data into a friendlier object to determine what data is available.- Parameters:
data- JSON data
-
-
Method Detail
-
getId
public String getId()
Description copied from class:AerisFriendlyResponseGet the id from the response.- Overrides:
getIdin classAerisFriendlyResponse- Returns:
- the id for the response.
-
getPlace
public Place getPlace()
Description copied from class:AerisFriendlyResponseGet the place from the response- Overrides:
getPlacein classAerisFriendlyResponse- Returns:
- The place
-
getLocation
public AerisLocation getLocation()
Description copied from class:AerisFriendlyResponseGets the Aeris location from the response.- Overrides:
getLocationin classAerisFriendlyResponse- Returns:
- the location
-
getProfileTimezone
public String getProfileTimezone()
Description copied from class:AerisFriendlyResponseGet the timezone for the profile.- Overrides:
getProfileTimezonein classAerisFriendlyResponse- Returns:
- the timezone.
-
-