Skip to content

BundleItem

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public sealed record BundleItem

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 #n in its name, else the number its file is named, else its place in the listing.
  • File (string) - The metadata file's name inside metadata/.
  • Name (string) - The item's published name.
  • Description (string) - The item's description; empty when it has none.
  • ImageField (string) - The image field 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?) - The external_url, or null.
  • AnimationUrl (string?) - The animation_url, or null.
  • Attributes (IReadOnlyList<MetadataAttribute>) - Its traits, in file order.

Properties

AnimationUrl

public string? AnimationUrl { get; init; }

The animation_url, or null.

Attributes

public IReadOnlyList<MetadataAttribute> Attributes { get; init; }

Its traits, in file order.

Description

public string Description { get; init; }

The item's description; empty when it has none.

ExternalUrl

public string? ExternalUrl { get; init; }

The external_url, or null.

File

public string File { get; init; }

The metadata file's name inside metadata/.

ImageField

public string ImageField { get; init; }

The image field exactly as the metadata writes it.

ImagePath

public string? ImagePath { get; init; }

The picture on disk that field resolves to inside the bundle, or null when the bundle does not carry it.

Name

public string Name { get; init; }

The item's published name.

Number

public int Number { get; init; }

Its position: the #n in its name, else the number its file is named, else its place in the listing.