Skip to content

ShareRequest

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

public sealed record ShareRequest

What the person asked to share.

Constructors

ShareRequest(string, bool, string?, bool, string, string, IReadOnlyList<string>, string?, bool)

public ShareRequest(string SetPath, bool IncludeCookBook, string? CookBookPath, bool Models, string Name, string Description, IReadOnlyList<string> Tags, string? ReplaceSlug, bool ReplaceSharedVersion);

Parameters

  • SetPath (string) - The cooked Set: a folder or a .set.
  • IncludeCookBook (bool) - Ship the source CookBook inside the Set.
  • CookBookPath (string?) - The .cbk to ship when IncludeCookBook is set.
  • Models (bool) - Ship the 3D models.
  • Name (string) - The share's display name.
  • Description (string) - A short description.
  • Tags (IReadOnlyList<string>) - Gallery tags.
  • ReplaceSlug (string?) - The share to swap out when the account is at the limit, or null.
  • ReplaceSharedVersion (bool) - The person ticked "Replace the shared version" (needed to update a share).

Properties

CookBookPath

public string? CookBookPath { get; init; }

The .cbk to ship when IncludeCookBook is set.

Description

public string Description { get; init; }

A short description.

IncludeCookBook

public bool IncludeCookBook { get; init; }

Ship the source CookBook inside the Set.

Models

public bool Models { get; init; }

Ship the 3D models.

Name

public string Name { get; init; }

The share's display name.

ReplaceSharedVersion

public bool ReplaceSharedVersion { get; init; }

The person ticked "Replace the shared version" (needed to update a share).

ReplaceSlug

public string? ReplaceSlug { get; init; }

The share to swap out when the account is at the limit, or null.

SetPath

public string SetPath { get; init; }

The cooked Set: a folder or a .set.

Tags

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

Gallery tags.