Class GeneratedFile<TAsset, TFile>
Base class for generated assets: images, audios, and videos. These assets are 'files' that can be downloaded and used in the application.
public abstract class GeneratedFile<TAsset, TFile> : GeneratedResult<TAsset>, IGeneratedFile, IGeneratedResult where TFile : RawFile
Type Parameters
TAssetTFile
- Inheritance
-
objectGeneratedResult<TAsset>GeneratedFile<TAsset, TFile>
- Implements
- Derived
- Inherited Members
Constructors
GeneratedFile(TAsset, string, Usage)
protected GeneratedFile(TAsset asset, string path, Usage usage = null)
Parameters
assetTAssetpathstringusageUsage
GeneratedFile(TAsset[], string[], Usage)
protected GeneratedFile(TAsset[] asset, string[] paths, Usage usage = null)
Parameters
assetTAsset[]pathsstring[]usageUsage
Fields
fileNote
public string fileNote
Field Value
- string
Properties
this[string]
public string this[string path] { get; }
Parameters
pathstring
Property Value
- string
Paths
public string[] Paths { get; }
Property Value
- string[]
Methods
SetNote(string)
public void SetNote(string note)
Parameters
notestring
ToFiles()
public abstract IFile[] ToFiles()
Returns
- IFile[]