Skip to content

RepoExtra

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

public sealed record RepoExtra

One thing the repository holds that the gallery does not allow.

Constructors

RepoExtra(RepoExtraKind, string, long?, long?, bool)

public RepoExtra(RepoExtraKind Kind, string Name, long? Size, long? Id, bool Removable = true);

Parameters

  • Kind (RepoExtraKind) - What it is.
  • Name (string) - The path, branch name, tag, or asset file name.
  • Size (long?) - Its size in bytes when known (a folder or Release: the sum of its files).
  • Id (long?) - The Release id (a Release) or asset id (an asset); null for the rest.
  • Removable (bool) - False for what nfty cannot delete through GitHub's API (a submodule); it is still listed.

Properties

Id

public long? Id { get; init; }

The Release id (a Release) or asset id (an asset); null for the rest.

Kind

public RepoExtraKind Kind { get; init; }

What it is.

Name

public string Name { get; init; }

The path, branch name, tag, or asset file name.

Removable

public bool Removable { get; init; }

False for what nfty cannot delete through GitHub's API (a submodule); it is still listed.

Size

public long? Size { get; init; }

Its size in bytes when known (a folder or Release: the sum of its files).