Skip to content

ShareFacts

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

public sealed record ShareFacts

What ShareCheck.CheckAsync() learned about a packed Set.

Constructors

ShareFacts(IReadOnlyList<string>, int, int, int, bool, bool, string?, string, string, string)

public ShareFacts(IReadOnlyList<string> Problems, int Assets, int Width, int Height, bool Models, bool IncludesCookBook, string? CookbookSha256, string Collection, string Fingerprint, string FileSha256);

Parameters

  • Problems (IReadOnlyList<string>) - What keeps the Set out of the gallery, in ShareRules' words; empty when it may be shared. When not empty every other member is a default.
  • Assets (int) - How many assets the Set holds.
  • Width (int) - Canvas width in pixels.
  • Height (int) - Canvas height in pixels.
  • Models (bool) - Whether the Set carries 3D models.
  • IncludesCookBook (bool) - Whether the Set's own CookBook rides inside it.
  • CookbookSha256 (string?) - The hash of the CookBook that made the Set, as set.json records it, or null.
  • Collection (string) - The collection's name.
  • Fingerprint (string) - Lowercase hex SHA-256 of the assets' DNA in number order: the same for the same assets whatever else was packed with them, different once the Set is extended.
  • FileSha256 (string) - Lowercase hex SHA-256 of the .set file itself, which is what a download is checked against.

Properties

Assets

public int Assets { get; init; }

How many assets the Set holds.

Collection

public string Collection { get; init; }

The collection's name.

CookbookSha256

public string? CookbookSha256 { get; init; }

The hash of the CookBook that made the Set, as set.json records it, or null.

FileSha256

public string FileSha256 { get; init; }

Lowercase hex SHA-256 of the .set file itself, which is what a download is checked against.

Fingerprint

public string Fingerprint { get; init; }

Lowercase hex SHA-256 of the assets' DNA in number order: the same for the same assets whatever else was packed with them, different once the Set is extended.

Height

public int Height { get; init; }

Canvas height in pixels.

IncludesCookBook

public bool IncludesCookBook { get; init; }

Whether the Set's own CookBook rides inside it.

Models

public bool Models { get; init; }

Whether the Set carries 3D models.

Problems

public IReadOnlyList<string> Problems { get; init; }

What keeps the Set out of the gallery, in ShareRules' words; empty when it may be shared. When not empty every other member is a default.

Width

public int Width { get; init; }

Canvas width in pixels.