CommunityEntry¶
Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.
One shared collection as the gallery lists it.
Constructors¶
CommunityEntry(int, string, CommunityOwner, string, string, string, string, string, IReadOnlyList<string>, CommunityCanvas, int, bool, bool, string?, CommunityFile, CommunityFile, string, string, DateTimeOffset, DateTimeOffset)¶
public CommunityEntry(int SchemaVersion, string Slug, CommunityOwner Owner, string Repo, string Release, string Name, string Collection, string Description, IReadOnlyList<string> Tags, CommunityCanvas Canvas, int Assets, bool Models, bool IncludesCookBook, string? CookbookSha256, CommunityFile Set, CommunityFile Preview, string Fingerprint, string NftyVersion, DateTimeOffset Created, DateTimeOffset Updated);
Parameters
SchemaVersion(int) - The schema this entry was written against.Slug(string) - The share's name within its owner's account.Owner(CommunityOwner) - Who shares it.Repo(string) - The owner's repository holding the files.Release(string) - The release tag holding the files.Name(string) - The share's display name.Collection(string) - The collection name the Set publishes.Description(string) - A short description.Tags(IReadOnlyList<string>) - Gallery tags.Canvas(CommunityCanvas) - The canvas size.Assets(int) - How many assets the Set holds.Models(bool) - Whether the Set carries 3D models.IncludesCookBook(bool) - Whether the source CookBook is inside.CookbookSha256(string?) - The source CookBook's hash, when known.Set(CommunityFile) - The packed Set.Preview(CommunityFile) - The preview picture.Fingerprint(string) - Hash of what the Set shows, used to spot the same Set shared twice.NftyVersion(string) - The nfty version that made the share.Created(DateTimeOffset) - When it was first shared.Updated(DateTimeOffset) - When it was last updated.
Properties¶
Assets¶
How many assets the Set holds.
Canvas¶
The canvas size.
Collection¶
The collection name the Set publishes.
CookbookSha256¶
The source CookBook's hash, when known.
Created¶
When it was first shared.
Description¶
A short description.
Fingerprint¶
Hash of what the Set shows, used to spot the same Set shared twice.
Id¶
The entry's identity in the gallery: owner id and slug.
IncludesCookBook¶
Whether the source CookBook is inside.
Models¶
Whether the Set carries 3D models.
Name¶
The share's display name.
NftyVersion¶
The nfty version that made the share.
Owner¶
Who shares it.
Preview¶
The preview picture.
Release¶
The release tag holding the files.
Repo¶
The owner's repository holding the files.
SchemaVersion¶
The schema this entry was written against.
Set¶
The packed Set.
Slug¶
The share's name within its owner's account.
Tags¶
Gallery tags.
Updated¶
When it was last updated.
Methods¶
SameShare(CommunityEntry, CommunityEntry)¶
True when every shared field is equal; CommunityEntry.Updated is ignored and CommunityEntry.Tags compare as a sequence.
Parameters
a(CommunityEntry) - One entry.b(CommunityEntry) - The other.
Returns. True when the two entries share the same fields.