docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IUGCProjectApi

    Represents a collection of functions to interact with the API endpoints

    Inherited Members
    IApiAccessor.Configuration
    IApiAccessor.GetBasePath()
    Namespace: Unity.Services.Apis.UGC
    Assembly: solution.dll
    Syntax
    public interface IUGCProjectApi : IApiAccessor

    Methods

    GetProject(string, CancellationToken)

    Get details about a project

    Declaration
    ApiOperation<ProjectDTO> GetProject(string projectId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string projectId

    Project identifier

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<ProjectDTO>

    The operation

    SearchProjects(int?, int?, List<string>, string, List<string>, bool?, CancellationToken)

    Search all projects

    Declaration
    ApiOperation<ProjectDTOPagedResult> SearchProjects(int? offset = null, int? limit = null, List<string> sortBys = null, string search = null, List<string> filters = null, bool? includeTotal = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    int? offset

    The amount of results to skip (optional)

    int? limit

    The amount of results to take (optional)

    List<string> sortBys

    The field to use to sort by in ascending order, prefix - for descending (optional)

    string search

    Only return results with this search term in their name (optional)

    List<string> filters

    You can filter on any field in the DTO<br /> Syntax for filters is: {field},{operator},{value}<br /> The operators are: eq (equal to), neq (not equal to), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal)<br /> The field can be nested up to two levels. Ex: "field.nestedField.nestedNestedField"<br /> filters="deletedAt,eq,null" will only return entities that have not been deleted<br /> (optional)

    bool? includeTotal

    Should the result include the total count of objects available to page (optional)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<ProjectDTOPagedResult>

    The operation

    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)