Example #1
0
 /// <summary>Completes the review informations.</summary>
 /// <param name="grade">The grade.</param>
 /// <param name="newDue">The new due.</param>
 /// <param name="newState">The new state.</param>
 /// <param name="newInterval">The new interval.</param>
 /// <param name="newEFactor">The new e factor.</param>
 public void CompleteReview(
     Grade grade, int newDue, PracticeState newState, int newInterval, float newEFactor)
 {
     Grade       = grade;
     NewDue      = newDue;
     NewState    = newState;
     NewInterval = newInterval;
     NewEFactor  = newEFactor;
 }
Example #2
0
 /// <summary>Initializes a new instance of the <see cref="ReviewLog" /> class.</summary>
 /// <param name="id">Creation timestamp.</param>
 /// <param name="cardId">The card identifier.</param>
 /// <param name="lastDue">The last due.</param>
 /// <param name="lastState">The last state.</param>
 /// <param name="lastInterval">The last interval.</param>
 /// <param name="lastEFactor">The last e factor.</param>
 /// <param name="evalTime">The eval time.</param>
 public ReviewLog(
     int id, int cardId, int lastDue, PracticeState lastState, int lastInterval,
     float lastEFactor, int evalTime)
 {
     Id           = id;
     CardId       = cardId;
     LastDue      = lastDue;
     LastState    = lastState;
     LastInterval = lastInterval;
     LastEFactor  = lastEFactor;
     EvalTime     = evalTime;
 }
Example #3
0
 /// <summary>Initializes a new instance of the <see cref="ReviewLog" /> class.</summary>
 /// <param name="id">Creation timestamp.</param>
 /// <param name="cardId">The card identifier.</param>
 /// <param name="grade">The grade.</param>
 /// <param name="lastDue">The last due.</param>
 /// <param name="newDue">The new due.</param>
 /// <param name="lastState">The last state.</param>
 /// <param name="newState">The new state.</param>
 /// <param name="lastInterval">The last interval.</param>
 /// <param name="newInterval">The new interval.</param>
 /// <param name="lastEFactor">The last e factor.</param>
 /// <param name="newEFactor">The new e factor.</param>
 /// <param name="evalTime">The eval time.</param>
 public ReviewLog(
     int id, int cardId, Grade grade, int lastDue, int newDue, PracticeState lastState,
     PracticeState newState, int lastInterval, int newInterval, float lastEFactor,
     float newEFactor, int evalTime)
 {
     Id           = id;
     CardId       = cardId;
     Grade        = grade;
     LastDue      = lastDue;
     NewDue       = newDue;
     LastState    = lastState;
     NewState     = newState;
     LastInterval = lastInterval;
     NewInterval  = newInterval;
     LastEFactor  = lastEFactor;
     NewEFactor   = newEFactor;
     EvalTime     = evalTime;
 }