Class BatchCommunicationTask
- java.lang.Object
-
- android.os.AsyncTask<Void,Void,T>
-
- com.aerisweather.aeris.communication.CommunicationTask<AerisBatchResponse>
-
- com.aerisweather.aeris.communication.BatchCommunicationTask
-
public class BatchCommunicationTask extends CommunicationTask<AerisBatchResponse>
-
-
Field Summary
Fields Modifier and Type Field Description protected BatchCallback
callback
-
Fields inherited from class com.aerisweather.aeris.communication.CommunicationTask
context, progressListener, request
-
-
Constructor Summary
Constructors Constructor Description BatchCommunicationTask(android.content.Context context, AerisRequest request)
Constructs the communication task with a context to use, and a request.BatchCommunicationTask(android.content.Context context, BatchCallback callback, AerisRequest request)
Constructs the communication task with a context to use, a callback and a request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AerisBatchResponse
doInBackground(Void... params)
protected void
onPostExecute(AerisBatchResponse result)
-
Methods inherited from class com.aerisweather.aeris.communication.CommunicationTask
executeSyncTask, isOnline, onCancelled, onPreExecute, unknownBatchError, unknownError, withProgress
-
-
-
-
Field Detail
-
callback
protected BatchCallback callback
-
-
Constructor Detail
-
BatchCommunicationTask
public BatchCommunicationTask(android.content.Context context, BatchCallback callback, AerisRequest request)
Constructs the communication task with a context to use, a callback and a request- Parameters:
context
- Context to use to check withcallback
- The callback after the communication has been executed and returned.request
- Request to use in the thread.
-
BatchCommunicationTask
public BatchCommunicationTask(android.content.Context context, AerisRequest request)
Constructs the communication task with a context to use, and a request. This constructor is intended to be used withCommunicationTask.executeSyncTask()
where the task is executed in a non-thread environment and the call will wait for the return object.- Parameters:
context
- Context to use to check withrequest
- Request to use in the thread.
-
-
Method Detail
-
doInBackground
protected AerisBatchResponse doInBackground(Void... params)
- Overrides:
doInBackground
in classCommunicationTask<AerisBatchResponse>
-
onPostExecute
protected void onPostExecute(AerisBatchResponse result)
- Overrides:
onPostExecute
in classCommunicationTask<AerisBatchResponse>
-
-