28public sealed class AnkiPackage
30 internal AnkiPackage(IReadOnlyList<AnkiDeck> decks,
AnkiMediaCollection media, IReadOnlyList<AnkiDiagnostic> diagnostics)
32 Decks = Array.AsReadOnly(decks.ToArray());
34 Diagnostics = Array.AsReadOnly(diagnostics.ToArray());
46 public IReadOnlyList<AnkiDeck>
Decks {
get; }
65 public IEnumerable<AnkiNote>
Notes =>
Decks.SelectMany(deck => deck.Traverse()).SelectMany(deck => deck.Notes);
70 public IEnumerable<AnkiCard>
Cards =>
Notes.SelectMany(note => note.Cards);
IReadOnlyList< AnkiDeck > Decks
Gets a fixed collection of the package's top-level deck hierarchies.
IEnumerable< AnkiNote > Notes
Enumerates all notes reachable from every top-level hierarchy.
AnkiMediaCollection Media
Gets the media payloads eagerly extracted from the archive.
IEnumerable< AnkiCard > Cards
Enumerates all cards reachable through Notes.
IReadOnlyList< AnkiDiagnostic > Diagnostics
Gets the ordered compatibility and preservation findings produced while reading.