BundleItem¶
Namespace Nfty.Core.Publish in assembly Nfty.Core.
One item of an upload bundle, as its metadata file describes it.
Constructors¶
BundleItem(int, string, string, string, string, string?, string?, string?, IReadOnlyList<MetadataAttribute>)¶
public BundleItem(int Number, string File, string Name, string Description, string ImageField, string? ImagePath, string? ExternalUrl, string? AnimationUrl, IReadOnlyList<MetadataAttribute> Attributes);
Parameters
Number(int) - Its position: the#nin its name, else the number its file is named, else its place in the listing.File(string) - The metadata file's name insidemetadata/.Name(string) - The item's published name.Description(string) - The item's description; empty when it has none.ImageField(string) - Theimagefield exactly as the metadata writes it.ImagePath(string?) - The picture on disk that field resolves to inside the bundle, or null when the bundle does not carry it.ExternalUrl(string?) - Theexternal_url, or null.AnimationUrl(string?) - Theanimation_url, or null.Attributes(IReadOnlyList<MetadataAttribute>) - Its traits, in file order.
Properties¶
AnimationUrl¶
The animation_url, or null.
Attributes¶
Its traits, in file order.
Description¶
The item's description; empty when it has none.
ExternalUrl¶
The external_url, or null.
File¶
The metadata file's name inside metadata/.
ImageField¶
The image field exactly as the metadata writes it.
ImagePath¶
The picture on disk that field resolves to inside the bundle, or null when the bundle does not carry it.
Name¶
The item's published name.
Number¶
Its position: the #n in its name, else the number its file is named, else its place in the listing.