Class ApiOperation
API Operation
Inherited Members
Namespace: Unity.Services.Apis
Assembly: Unity.Services.Apis.dll
Syntax
public class ApiOperation
Properties
AsTask
Gets an awaiter used to await this Task.
Declaration
public Task<ApiResponse> AsTask { get; }
Property Value
Type | Description |
---|---|
Task<Api |
IsCompleted
Gets a value that indicates whether the task has completed.
Declaration
public bool IsCompleted { get; protected set; }
Property Value
Type | Description |
---|---|
bool |
Response
Gets the response of this operation
Declaration
public ApiResponse Response { get; protected set; }
Property Value
Type | Description |
---|---|
Api |
Methods
GetAwaiter()
Gets an awaiter used to await this Task.
Declaration
public TaskAwaiter<ApiResponse> GetAwaiter()
Returns
Type | Description |
---|---|
Task |
An awaiter instance |
WaitForCompletion()
Coroutine support to yield for completion
Declaration
public IEnumerator WaitForCompletion()
Returns
Type | Description |
---|---|
IEnumerator | Enumerator to yield to |
Events
Completed
Get notified when the operation completes
Declaration
public event Action<ApiResponse> Completed
Event Type
Type | Description |
---|---|
Action<Api |