AnkiIO 1.0.2
Build, validate, import, and export Anki-compatible decks from .NET
Loading...
Searching...
No Matches
AnkiIO.AnkiReviewLog(long Id, DateTimeOffset ReviewedAt, int Ease, int Interval, int PreviousInterval, int EaseFactor, TimeSpan AnswerTime, int ReviewType) Class Referencesealed

Preserves one historical answer event separately from a card's current scheduling state. More...

Properties

long Id = Id [get]
 Gets the stable legacy review-log key.
DateTimeOffset ReviewedAt = ReviewedAt [get]
 Gets the absolute time represented by this answer event.
int Ease = Ease [get]
 Gets the raw answer-button selection.
int Interval = Interval [get]
 Gets the interval produced by the answer.
int PreviousInterval = PreviousInterval [get]
 Gets the interval that applied before the answer.
int EaseFactor = EaseFactor [get]
 Gets the resulting legacy ease factor.
TimeSpan AnswerTime = AnswerTime [get]
 Gets the duration spent answering.
int ReviewType = ReviewType [get]
 Gets Anki's raw review-kind code.

Detailed Description

Preserves one historical answer event separately from a card's current scheduling state.

Parameters
IdThe stable legacy review-log key, conventionally derived from the answer time in Unix milliseconds.
ReviewedAtThe absolute answer instant, including its original offset.
EaseThe raw answer-button number stored by Anki.
IntervalThe resulting interval: positive days or negative seconds.
PreviousIntervalThe preceding interval using the same positive-day/negative-second encoding.
EaseFactorThe resulting legacy ease factor in per-mille units.
AnswerTimeHow long the answer took; valid authored values are non-negative.
ReviewTypeAnki's raw numeric review-kind code.

Review records are immutable history and do not recalculate AnkiCard.Scheduling. Native AnkiIO JSON preserves every property and orders records by Id for deterministic output. The legacy package writer stores ID, card ID, ease, intervals, factor, answer time in milliseconds, and review type; it cannot independently encode ReviewedAt and the current legacy package reader does not reconstruct review rows. CrowdAnki-style JSON omits review history and reports that loss. Retain native JSON when exact history must round-trip through AnkiIO.

card.ReviewHistory.Add(new AnkiReviewLog(
Id: 1_750_000_000_000,
ReviewedAt: DateTimeOffset.FromUnixTimeMilliseconds(1_750_000_000_000),
Ease: 3,
Interval: 14,
EaseFactor: 2500,
AnswerTime: TimeSpan.FromSeconds(2),
ReviewType: 1));
Preserves one historical answer event separately from a card's current scheduling state.
TimeSpan AnswerTime
Gets the duration spent answering.
int PreviousInterval
Gets the interval that applied before the answer.
int EaseFactor
Gets the resulting legacy ease factor.
DateTimeOffset ReviewedAt
Gets the absolute time represented by this answer event.
long Id
Gets the stable legacy review-log key.
int ReviewType
Gets Anki's raw review-kind code.
int Interval
Gets the interval produced by the answer.
int Ease
Gets the raw answer-button selection.

Definition at line 32 of file AnkiReviewLog.cs.

Property Documentation

◆ AnswerTime

TimeSpan AnkiIO.AnkiReviewLog.AnswerTime = AnswerTime
get

Gets the duration spent answering.

A non-negative duration; legacy APKG output stores whole milliseconds.

Definition at line 68 of file AnkiReviewLog.cs.

◆ Ease

int AnkiIO.AnkiReviewLog.Ease = Ease
get

Gets the raw answer-button selection.

Anki's stored integer code; AnkiIO retains it without enum coercion.

Definition at line 52 of file AnkiReviewLog.cs.

◆ EaseFactor

int AnkiIO.AnkiReviewLog.EaseFactor = EaseFactor
get

Gets the resulting legacy ease factor.

A per-mille value such as 2500 for 250%.

Definition at line 64 of file AnkiReviewLog.cs.

◆ Id

long AnkiIO.AnkiReviewLog.Id = Id
get

Gets the stable legacy review-log key.

A caller-supplied integer, conventionally a Unix-millisecond timestamp.

Definition at line 44 of file AnkiReviewLog.cs.

◆ Interval

int AnkiIO.AnkiReviewLog.Interval = Interval
get

Gets the interval produced by the answer.

Positive days or seconds encoded as a negative integer.

Definition at line 56 of file AnkiReviewLog.cs.

◆ PreviousInterval

int AnkiIO.AnkiReviewLog.PreviousInterval = PreviousInterval
get

Gets the interval that applied before the answer.

Positive days or seconds encoded as a negative integer.

Definition at line 60 of file AnkiReviewLog.cs.

◆ ReviewedAt

DateTimeOffset AnkiIO.AnkiReviewLog.ReviewedAt = ReviewedAt
get

Gets the absolute time represented by this answer event.

A DateTimeOffset preserved exactly by native JSON.

Definition at line 48 of file AnkiReviewLog.cs.

◆ ReviewType

int AnkiIO.AnkiReviewLog.ReviewType = ReviewType
get

Gets Anki's raw review-kind code.

An integer retained without interpretation so unknown future or add-on codes survive native JSON.

Definition at line 72 of file AnkiReviewLog.cs.


The documentation for this class was generated from the following file: