PublicRepoManifest¶
Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.
The nfty-public.json an owner's repository carries: what that account shares.
Constructors¶
PublicRepoManifest(int, IReadOnlyList<CommunityEntry>)¶
Parameters
SchemaVersion(int) - The schema this file was written against.Shares(IReadOnlyList<CommunityEntry>) - The account's entries.
Properties¶
SchemaVersion¶
The schema this file was written against.
Shares¶
The account's entries.
Methods¶
Read(Stream)¶
Reads the file, refusing a newer schema by name.
Parameters
stream(Stream) - The JSON.
Returns. The manifest read.
Write(PublicRepoManifest)¶
Writes the file in the order given.
Parameters
manifest(PublicRepoManifest) - The manifest.
Returns. The manifest as UTF-8 JSON, shares in the order given.