Class AlertsTask
- java.lang.Object
- 
- android.os.AsyncTask<Void,Void,T>
- 
- com.aerisweather.aeris.communication.CommunicationTask<AerisResponse>
- 
- com.aerisweather.aeris.communication.AerisCommunicationTask
- 
- com.aerisweather.aeris.communication.loaders.AerisAbstractTask
- 
- com.aerisweather.aeris.communication.loaders.AlertsTask
 
 
 
 
 
- 
 public class AlertsTask extends AerisAbstractTask Requests and loads advisory data into local domain objects from the API.
- 
- 
Field Summary- 
Fields inherited from class com.aerisweather.aeris.communication.AerisCommunicationTaskcallback
 - 
Fields inherited from class com.aerisweather.aeris.communication.CommunicationTaskcontext, progressListener, request
 
- 
 - 
Constructor SummaryConstructors Constructor Description AlertsTask(android.content.Context context, AlertsTaskCallback callback)Constructs an instance with the context and the callback to use.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallback(List<AerisDataJSON> dataList)Passed callback to the proper concrete class's callback.EndpointTypegetType()Get the type of the EndpointvoidonFail(AerisError error)Passes error callback to the proper concrete class's fail callback.- 
Methods inherited from class com.aerisweather.aeris.communication.loaders.AerisAbstractTaskonPostExecute, requestClosest, requestClosest, requestClosestWithCurrentLoc, requestClosestWithCurrentLoc, requestSearch, requestWithinBounds, requestWithinBounds, requestWithinPolygon, requestWithinPolygon, withDebug
 - 
Methods inherited from class com.aerisweather.aeris.communication.AerisCommunicationTaskdoInBackground
 - 
Methods inherited from class com.aerisweather.aeris.communication.CommunicationTaskexecuteSyncTask, isOnline, onCancelled, onPreExecute, unknownBatchError, unknownError, withProgress
 
- 
 
- 
- 
- 
Constructor Detail- 
AlertsTaskpublic AlertsTask(android.content.Context context, AlertsTaskCallback callback)Constructs an instance with the context and the callback to use.- Parameters:
- context- context to use.
- callback- callback to use
 
 
- 
 - 
Method Detail- 
getTypepublic EndpointType getType() Description copied from class:AerisAbstractTaskGet the type of the Endpoint- Specified by:
- getTypein class- AerisAbstractTask
- Returns:
- endpoint type
 
 - 
callbackpublic void callback(List<AerisDataJSON> dataList) Description copied from class:AerisAbstractTaskPassed callback to the proper concrete class's callback.- Specified by:
- callbackin class- AerisAbstractTask
- Parameters:
- dataList- List of data responses the concrete class should handle passing to its callback
 
 - 
onFailpublic void onFail(AerisError error) Description copied from class:AerisAbstractTaskPasses error callback to the proper concrete class's fail callback.- Specified by:
- onFailin class- AerisAbstractTask
- Parameters:
- error- error to pass back
 
 
- 
 
-