Class GeneratedAsset<TAsset, TFile>
Base class for generated assets: images, audios, and videos.
These assets are 'files' that can be downloaded and used in the application.
Inheritance
object
Result
RESTResponse
GeneratedAsset<TAsset, TFile>
Assembly: .dll
Syntax
public abstract class GeneratedAsset<TAsset, TFile> : GeneratedResult<TAsset>, IGenerated where TFile : UniFileBase<TAsset>
Type Parameters
Name |
Description |
TAsset |
|
TFile |
|
Constructors
GeneratedAsset(TAsset, string, Usage)
Declaration
protected GeneratedAsset(TAsset asset, string path, Usage usage = null)
Parameters
Type |
Name |
Description |
TAsset |
asset |
|
string |
path |
|
Usage |
usage |
|
GeneratedAsset(TAsset[], string[], Usage)
Declaration
protected GeneratedAsset(TAsset[] asset, string[] paths, Usage usage = null)
Parameters
Type |
Name |
Description |
TAsset[] |
asset |
|
string[] |
paths |
|
Usage |
usage |
|
Properties
this[string]
Declaration
public string this[string path] { get; }
Parameters
Type |
Name |
Description |
string |
path |
|
Property Value
Paths
Declaration
public string[] Paths { get; }
Property Value
Type |
Description |
string[] |
|
Methods
ToFiles()
Declaration
public abstract TFile[] ToFiles()
Returns
Implements
Extension Methods