public static class ElasticsearchRequestController.SetConfirmedDriver
extends android.os.AsyncTask<java.lang.String,java.lang.Void,java.lang.Boolean>
| Constructor and Description |
|---|
SetConfirmedDriver(android.content.Context context)
Constructor for SetConfirmedDriver
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Boolean |
doInBackground(java.lang.String... info)
Sets a confirmed driver for a UserRequest on the elasticsearch server
|
protected void |
onPostExecute(java.lang.Boolean result)
Notifies the user if unable to accept the request (with a toast message)
|
public SetConfirmedDriver(android.content.Context context)
context - the current contextprotected java.lang.Boolean doInBackground(java.lang.String... info)
doInBackground in class android.os.AsyncTask<java.lang.String,java.lang.Void,java.lang.Boolean>info - the user ID of the driverprotected void onPostExecute(java.lang.Boolean result)
onPostExecute in class android.os.AsyncTask<java.lang.String,java.lang.Void,java.lang.Boolean>result - true if successful (no message), false otherwise (message sends)