Skip to main content

Class: Card

Hierarchy

  • NamespaceBase

    Card

Properties

_id

Readonly _id: string


createdAt

Readonly createdAt: number


lastRepetitionTime

Optional Readonly lastRepetitionTime: number


nextRepetitionTime

Optional Readonly nextRepetitionTime: number


remId

Readonly remId: string


repetitionHistory

Optional Readonly repetitionHistory: RepetitionStatus[]


timesWrongInRow

Optional Readonly timesWrongInRow: number


type

Readonly type: CardType

Methods

getRem

getRem(): Promise<undefined | Rem>

Returns

Promise<undefined | Rem>


getType

getType(): Promise<CardType>

Returns

Promise<CardType>


remove

remove(): Promise<void>

Returns

Promise<void>


updateCardRepetitionStatus

updateCardRepetitionStatus(score): Promise<void>

Parameters

NameType
scoreQueueInteractionScore

Returns

Promise<void>