docs.unity3d.com
    Show / Hide Table of Contents

    Class CloudProjectProvider

    Implement this interface to transform user facing data like IProject into service DTOs

    Inheritance
    Object
    CloudProjectProvider
    Inherited Members
    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 sealed class CloudProjectProvider : IProjectProvider

    Constructors

    CloudProjectProvider(IServiceHttpClient, IServiceHostResolver)

    Initializes a new instance of the CloudProjectProvider class.

    Declaration
    public CloudProjectProvider(IServiceHttpClient serviceHttpClient, IServiceHostResolver serviceHostResolver)
    Parameters
    Type Name Description
    IServiceHttpClient serviceHttpClient

    The IServiceHttpClient used to fetch the data.

    IServiceHostResolver serviceHostResolver

    The IServiceHostResolver object.

    Methods

    GetCurrentUserProjectList(IOrganization, Pagination, CancellationToken, Boolean, String)

    Implement this method to get a list of IProject for an organization for current user.

    Declaration
    public Task<IProjectPage> GetCurrentUserProjectList(IOrganization organization, Pagination pagination, CancellationToken token, bool enrichWithUsersCount = false, string xCorrelationId = null)
    Parameters
    Type Name Description
    IOrganization organization

    The genesis id of the organization.

    Pagination pagination

    The pagination parameters.

    CancellationToken token

    The cancellation token

    Boolean enrichWithUsersCount

    A flag indicating whether the projects should have user count.

    String xCorrelationId

    Correlation id of the request.

    Returns
    Type Description
    Task<IProjectPage>

    A task whose result is an IProjectPage.

    Implements
    IProjectProvider.GetCurrentUserProjectList(IOrganization, Pagination, CancellationToken, Boolean, String)

    GetProjectsByOrganizationAndUserIdsAsync(IOrganization, String, Pagination, CancellationToken, Boolean, String)

    Implement this method to get a list of IProject for an organization for current user.

    Declaration
    public Task<IProjectPage> GetProjectsByOrganizationAndUserIdsAsync(IOrganization organization, string userId, Pagination pagination, CancellationToken token, bool enrichWithUsersCount = false, string xCorrelationId = null)
    Parameters
    Type Name Description
    IOrganization organization

    The genesis id of the organization.

    String userId

    ID of the user

    Pagination pagination

    An object containing the necessary information create an IAssetPage.

    CancellationToken token

    The cancellation token

    Boolean enrichWithUsersCount

    A flag indicating whether the projects should have user count.

    String xCorrelationId

    Correlation id of the request.

    Returns
    Type Description
    Task<IProjectPage>

    A task whose result is an IProjectPage.

    Implements
    IProjectProvider.GetProjectsByOrganizationAndUserIdsAsync(IOrganization, String, Pagination, CancellationToken, Boolean, String)
    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