docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetPage

    Inheritance
    Object
    PagedResponse<IAsset>
    AssetPage
    Inherited Members
    PagedResponse<IAsset>.Elements
    PagedResponse<IAsset>.PageEndIndex
    PagedResponse<IAsset>.Pagination
    PagedResponse<IAsset>.PreviousPage
    PagedResponse<IAsset>.NextPageToken
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Assets
    Syntax
    public abstract class AssetPage : PagedResponse<IAsset>, IAssetPage, IPagedResponse<IAsset>

    Constructors

    AssetPage(IAsset[], String, IAssetPage)

    Declaration
    protected AssetPage(IAsset[] assets, string nextPageToken, IAssetPage previousPage)
    Parameters
    Type Name Description
    IAsset[] assets
    String nextPageToken
    IAssetPage previousPage

    AssetPage(IOrganization, IProject, IAsset[], String, IPagedResponse<IAsset>, Int32)

    Declaration
    protected AssetPage(IOrganization organization, IProject project, IAsset[] assets, string nextPageToken, IPagedResponse<IAsset> previousPage = null, int pageEndIndex = -1)
    Parameters
    Type Name Description
    IOrganization organization
    IProject project
    IAsset[] assets
    String nextPageToken
    IPagedResponse<IAsset> previousPage
    Int32 pageEndIndex

    Properties

    Organization

    Implement this property to return the organization id of the page.

    Declaration
    public IOrganization Organization { get; }
    Property Value
    Type Description
    IOrganization
    Implements
    IAssetPage.Organization

    Project

    Implement this property to return the project id of the page.

    Declaration
    public IProject Project { get; }
    Property Value
    Type Description
    IProject
    Implements
    IAssetPage.Project

    Methods

    GetNextAsync<TAsset>(CancellationToken)

    Implement this method to return the next set of assets.

    Declaration
    public abstract Task<IAssetPage> GetNextAsync<TAsset>(CancellationToken token)
        where TAsset : IAsset, new()
    Parameters
    Type Name Description
    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<IAssetPage>

    A task whose result is an IAssetPage.

    Type Parameters
    Name Description
    TAsset
    Implements
    IAssetPage.GetNextAsync<TAsset>(CancellationToken)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023