Class AerisPointHandler
- java.lang.Object
-
- com.aerisweather.aeris.maps.handlers.AerisPointHandler
-
- All Implemented Interfaces:
com.aerisweather.aeris.communication.AerisCallback
- Direct Known Subclasses:
AdvisoriesHandler
,AirQualityPointHandler
,ConvectiveOutlookHandler
,DroughtMonitorHandler
,EarthquakesPointHandler
,FireOutlookHandler
,FiresPointHandler
,LightningPointHandler
,RecordsPointHandler
,RiversPointHandler
,StormCellPointHandler
,StormReportsPointHandler
,TropicalCycloneErrorConeHandler
,TropicalPointHandler
public abstract class AerisPointHandler extends Object implements com.aerisweather.aeris.communication.AerisCallback
Aeris abstract handler for helping handle the response from the AerisCallback, and then notifying the mapview to display the result.
-
-
Field Summary
Fields Modifier and Type Field Description protected WeakReference<AerisMapView>
mapView
protected AerisPointData
pointData
-
Constructor Summary
Constructors Constructor Description AerisPointHandler(AerisMapView mapView, AerisPointData pointData)
Handler constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getSnippet(String dateISO, String cityName, String state)
void
handleResponse(com.aerisweather.aeris.model.AerisResponse response)
Handles the response from the server.void
onResult(com.aerisweather.aeris.communication.EndpointType endpoint, com.aerisweather.aeris.model.AerisResponse response)
-
-
-
Field Detail
-
mapView
protected WeakReference<AerisMapView> mapView
-
pointData
protected AerisPointData pointData
-
-
Constructor Detail
-
AerisPointHandler
public AerisPointHandler(AerisMapView mapView, AerisPointData pointData)
Handler constructor. Requires an instance of the AerisMapView to populate with Markers on handling a response.- Parameters:
mapView
- MapView to populate on finish.pointData
- point data type to populate.
-
-
Method Detail
-
onResult
public void onResult(com.aerisweather.aeris.communication.EndpointType endpoint, com.aerisweather.aeris.model.AerisResponse response)
- Specified by:
onResult
in interfacecom.aerisweather.aeris.communication.AerisCallback
-
handleResponse
public void handleResponse(com.aerisweather.aeris.model.AerisResponse response)
Handles the response from the server.- Parameters:
response
- response object
-
-