Package com.aerisweather.aeris.response
Class AdvisoriesResponse
- java.lang.Object
-
- com.aerisweather.aeris.response.AerisFriendlyResponse
-
- com.aerisweather.aeris.response.AdvisoriesResponse
-
- Direct Known Subclasses:
AlertsResponse
public class AdvisoriesResponse extends AerisFriendlyResponse
Object to make theadvisories
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 AdvisoriesResponse(AerisDataJSON data)
Construct the Advisories Response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getActive()
Get the active flag.Details
getAdvisoryDetail()
Get the details of the advisory.GeoPolygon
getGeoPoly()
Get the poly (boundary for the advisory)AdvisoryIncludes
getIncludes()
Get the advisory includes for the response.String
getPolyString()
Get the poly (boundary for the advisory)TimeStamp
getTimestamps()
Get the timestamps for the advisory.-
Methods inherited from class com.aerisweather.aeris.response.AerisFriendlyResponse
getDataSource, getId, getLocation, getPlace, getProfile, getProfileTimezone, getRelative
-
-
-
-
Constructor Detail
-
AdvisoriesResponse
public AdvisoriesResponse(AerisDataJSON data)
Construct the Advisories Response. This is a wrapper for the response from theADVISORIES
endpoint.- Parameters:
data
- The data to wrap into the response.
-
-
Method Detail
-
getAdvisoryDetail
public Details getAdvisoryDetail()
Get the details of the advisory.- Returns:
- The advisory detail object
-
getTimestamps
public TimeStamp getTimestamps()
Get the timestamps for the advisory.- Returns:
- The timestamps
-
getPolyString
public String getPolyString()
Get the poly (boundary for the advisory)- Returns:
- the Poly from the response.
-
getGeoPoly
public GeoPolygon getGeoPoly()
Get the poly (boundary for the advisory)- Returns:
- the Poly from the response.
-
getIncludes
public AdvisoryIncludes getIncludes()
Get the advisory includes for the response.- Returns:
- The advisory inlcudes.
-
getActive
public Boolean getActive()
Get the active flag. True means the alert is currently active.- Returns:
- the active attribute from the response
-
-