47 ArgumentOutOfRangeException.ThrowIfNegative(templateOrdinal);
53 this.scheduling = scheduling ??
throw new ArgumentNullException(nameof(scheduling));
62 public long Id {
get; }
98 set => scheduling = value ??
throw new ArgumentNullException(nameof(value),
"Scheduling cannot be null.");
137 public IList<AnkiReviewLog>
ReviewHistory {
get; } =
new List<AnkiReviewLog>();
int Flag
Gets or sets the single user-visible color flag attached to this card.
AnkiCard(long id, long noteId, long deckId, int templateOrdinal, AnkiScheduling scheduling)
Initializes an unattached card for an importer or format adapter.
IList< AnkiReviewLog > ReviewHistory
Gets answer events associated with this card.
long NoteId
Gets the ID of the note whose fields and template render this card.
int TemplateOrdinal
Gets which template or Cloze deletion generated this card.
long DeckId
Gets or sets the deck in which Anki should place this individual card.
long Id
Gets the persisted identity Anki uses to distinguish this card from every other card.
AnkiScheduling Scheduling
Gets or replaces the complete persisted scheduler state for this card.
Preserves the current scheduler state stored on one card without running Anki's scheduler.