Class UGCContentVersionsApi
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: Unity.Services.Apis.UGC
Assembly: solution.dll
Syntax
public class UGCContentVersionsApi : IUGCContentVersionsApi, IApiAccessor
Constructors
UGCContentVersionsApi(IApiClient)
Initializes a new instance of the UGCContent
Declaration
public UGCContentVersionsApi(IApiClient apiClient)
Parameters
Type | Name | Description |
---|---|---|
IApi |
apiClient | The client interface for synchronous API access. |
UGCContentVersionsApi(IApiClient, IApiConfiguration)
Initializes a new instance of the UGCContent
Declaration
public UGCContentVersionsApi(IApiClient apiClient, IApiConfiguration apiConfiguration)
Parameters
Type | Name | Description |
---|---|---|
IApi |
apiClient | The client interface for synchronous API access. |
IApi |
apiConfiguration | The configuration object. |
Properties
Client
The client for accessing this underlying API asynchronously.
Declaration
public IApiClient Client { get; }
Property Value
Type | Description |
---|---|
IApi |
Configuration
Gets the configuration object
Declaration
public IApiConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
IApi |
An instance of the Configuration |
Methods
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
string | The base path |
SearchContentVersions(string, string, string, int?, int?, List<string>, bool?, CancellationToken)
Search all versions of a content item in a given project and environment
Declaration
public ApiOperation<ContentVersionDTOPagedResult> SearchContentVersions(string projectId, string environmentId, string contentId, int? offset = null, int? limit = null, List<string> sortBys = null, bool? includeTotal = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | |
string | environmentId | |
string | contentId | |
int? | offset | (optional) |
int? | limit | (optional) |
List<string> | sortBys | (optional) |
bool? | includeTotal | (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |