Interface IAssetCollection
This object contains the information about an asset collection.
Namespace: Unity.Cloud.Assets
Assembly: solution.dll
Syntax
public interface IAssetCollection
Properties
Description
Describes the collection.
Declaration
string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
Descriptor
The descriptor of the collection.
Declaration
CollectionDescriptor Descriptor { get; }
Property Value
| Type | Description |
|---|---|
| CollectionDescriptor |
Name
The name of the collection.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
ParentPath
The path to the parent collection; can be empty.
Declaration
CollectionPath ParentPath { get; }
Property Value
| Type | Description |
|---|---|
| CollectionPath |
Methods
GetFullCollectionPath()
Returns the full path to the collection.
Declaration
string GetFullCollectionPath()
Returns
| Type | Description |
|---|---|
| string | The path of the collection. |
LinkAssetsAsync(IEnumerable<IAsset>, CancellationToken)
Adds a set of asset references to the collection.
Declaration
Task LinkAssetsAsync(IEnumerable<IAsset> assets, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IAsset> | assets | The assets to link to the collection. |
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | A task with no result. |
MoveToNewPathAsync(CollectionPath, CancellationToken)
Creates a new path for the collection.
Declaration
Task MoveToNewPathAsync(CollectionPath newCollectionPath, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectionPath | newCollectionPath | The new parent path. |
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | A task with no result. |
RefreshAsync(CancellationToken)
Refreshes the collection properties.
Declaration
Task RefreshAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | A task with no result. |
UnlinkAssetsAsync(IEnumerable<IAsset>, CancellationToken)
Removes a set of asset references from the collection.
Declaration
Task UnlinkAssetsAsync(IEnumerable<IAsset> assets, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IAsset> | assets | The assets to unlink from the collection. |
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | A task with no result. |
UpdateAsync(IAssetCollectionUpdate, CancellationToken)
Updates the collection.
Declaration
Task UpdateAsync(IAssetCollectionUpdate assetCollectionUpdate, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IAssetCollectionUpdate | assetCollectionUpdate | The object containing the collection information to update. |
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | A task with no result. |