Class TropicalPointHandler

  • All Implemented Interfaces:
    com.aerisweather.aeris.communication.AerisCallback

    public class TropicalPointHandler
    extends AerisPointHandler
    Response handler for handling fires query responses from the Aeris servers and passing the fire point data to the AerisMapView.
    • Constructor Detail

      • TropicalPointHandler

        public TropicalPointHandler​(AerisMapView aerisMapView)
        Create an instance for the AerisMapView to pass the tropical_cyclones points to.
        Parameters:
        aerisMapView - AerisMapView to use.
    • Method Detail

      • handleResponse

        public void handleResponse​(com.aerisweather.aeris.model.AerisResponse response)
        Description copied from class: AerisPointHandler
        Handles the response from the server.
        Overrides:
        handleResponse in class AerisPointHandler
        Parameters:
        response - response object
      • getMarkerFromData

        public AerisMarker getMarkerFromData​(com.aerisweather.aeris.model.AerisDataJSON data)
      • getMarkerFromData

        public AerisMarker getMarkerFromData​(com.aerisweather.aeris.model.AerisDataJSON data,
                                             com.aerisweather.aeris.model.TropicalCycloneTrack track)
      • getForecastMarkerFromData

        public AerisMarker getForecastMarkerFromData​(com.aerisweather.aeris.model.TropicalCycloneForecast forecast,
                                                     com.aerisweather.aeris.model.AerisLocation loc)
      • onResult

        public void onResult​(com.aerisweather.aeris.communication.EndpointType endpoint,
                             com.aerisweather.aeris.model.AerisResponse response)
        Specified by:
        onResult in interface com.aerisweather.aeris.communication.AerisCallback
        Overrides:
        onResult in class AerisPointHandler