AnkiIO 1.0.2
Build, validate, import, and export Anki-compatible decks from .NET
Loading...
Searching...
No Matches
Anki2605VersionAdapter.cs
1using System.Collections.Frozen;
2
3namespace AnkiIO;
4
23{
26 {
27 }
28
31 public string Name => "Anki 26.05";
32
36 public bool Supports(Version version) => version.Major == 26 && version.Minor == 5;
37
40 public IReadOnlySet<int> CollectionSchemas { get; } = new[] { 18 }.ToFrozenSet();
41
44 public int SchedulerVersion => 3;
45
51 public IReadOnlySet<string> PackageEntries { get; } = new[] { "collection.anki2", "collection.anki21", "collection.anki21b", "meta", "media" }.ToFrozenSet(StringComparer.Ordinal);
52}
int SchedulerVersion
Gets the verified scheduler generation.
Anki2605VersionAdapter()
Initializes the stateless Anki 26.05 capability adapter.
IReadOnlySet< string > PackageEntries
Gets recognized top-level package entry names for the Anki 26.05 family.
IReadOnlySet< int > CollectionSchemas
Gets the verified Anki collection schema identifiers.
bool Supports(Version version)
Determines whether a version belongs to the verified Anki 26.05 family.
string Name
Gets the stable adapter name.
Describes collection, scheduler, and package capabilities verified for an Anki version family.