docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ApiOperation<T>

    API Operation

    Inheritance
    object
    ApiOperation
    ApiOperation<T>
    Inherited Members
    ApiOperation.IsCompleted
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Shared
    Assembly: solution.dll
    Syntax
    public class ApiOperation<T> : ApiOperation
    Type Parameters
    Name Description
    T

    The model associated to the response

    Properties

    AsTask

    Gets an awaiter used to await this Task.

    Declaration
    public Task<ApiResponse<T>> AsTask { get; }
    Property Value
    Type Description
    Task<ApiResponse<T>>

    Response

    Gets the response of this operation

    Declaration
    public ApiResponse<T> Response { get; }
    Property Value
    Type Description
    ApiResponse<T>

    Methods

    GetAwaiter()

    Gets an awaiter used to await this Task.

    Declaration
    public TaskAwaiter<ApiResponse<T>> GetAwaiter()
    Returns
    Type Description
    TaskAwaiter<ApiResponse<T>>

    An awaiter instance

    Events

    Completed

    Get notified when the operation completes

    Declaration
    public event Action<ApiResponse<T>> Completed
    Event Type
    Type Description
    Action<ApiResponse<T>>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)