CommunityIndex¶
Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.
The gallery's published list: every entry, generated from the owners' repositories.
Constructors¶
CommunityIndex(int, DateTimeOffset, IReadOnlyList<CommunityEntry>)¶
public CommunityIndex(int SchemaVersion, DateTimeOffset Generated, IReadOnlyList<CommunityEntry> Entries);
Parameters
SchemaVersion(int) - The schema this list was written against.Generated(DateTimeOffset) - When the list was built.Entries(IReadOnlyList<CommunityEntry>) - The entries.
Properties¶
Entries¶
The entries.
Generated¶
When the list was built.
SchemaVersion¶
The schema this list was written against.
Methods¶
Read(Stream)¶
Reads a list, refusing a newer schema by name.
Parameters
stream(Stream) - The JSON.
Returns. The list read.
Write(CommunityIndex)¶
Writes a list with entries sorted ordinally: owner id ascending, then slug.
Parameters
index(CommunityIndex) - The list.
Returns. The list as UTF-8 JSON, entries sorted.