A representation of the result of a Task, which includes
additional information about the outcome of the execution.
|
ApiTaskResult(Status
status)
Creates an instance of
ApiTaskResult
for situations when the Task
fails to return a result.
|
|
|
ApiTaskResult(T result, Status
status)
Creates an instance of
ApiTaskResult
with a result and a status.
|
| T |
getResult()
Returns the result of the task.
|
| Status |
getStatus()
Returns the status of the task.
|
| String |
toString()
|
Creates an instance of ApiTaskResult
for situations when the Task fails to
return a result.
| status | a Status
object contains information about the cause of the failure. |
|---|
Creates an instance of ApiTaskResult
with a result and a status.
| result | the result of the task. |
|---|---|
| status | a Status
object with information about the operation. |
Returns the result of the task.
Returns the status of the task.