Class AdvisoriesResponse

  • Direct Known Subclasses:
    AlertsResponse

    public class AdvisoriesResponse
    extends AerisFriendlyResponse
    Object to make the advisories endpoint response more friendly to determine what parts of the AerisDataJSON have come back in the response.
    • Constructor Detail

      • AdvisoriesResponse

        public AdvisoriesResponse​(AerisDataJSON data)
        Construct the Advisories Response. This is a wrapper for the response from the ADVISORIES 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