Reference
tilttek/reading-questsEvery public type of the package, with its role.
Books and measures
| Type | Role |
|---|---|
Book | A document as the quests see it: its identifier, its page count and its facts. |
BookShelfInterface | Finds a book by the identifier of its document. |
InMemoryBookShelf | Up to 100 000 books in memory, from objects or plain values. |
ReadingUnit | Pages or minutes. |
ReadingMeasure | How the site counts an amount: the total of a book and the amount reached at a progress. |
Recording
| Type | Role |
|---|---|
ReadingVerbs | The verbs book.started, book.read and book.finished, and the pattern book.*. |
ReadingActivities | Turns one step of reading into its activities, with idempotency keys. |
ReadingRecorder | Records a position and its activities in one call. |
ReadingUpdate | What the recorder did: the progress update, the journal's entries and the amount newly counted. |
Quests and goals
| Type | Role |
|---|---|
ReadingSteps | The steps of tilttek/quests that open, finish or read books selected by their facts. |
ReadingGoal | A reader's goal for a calendar year: books finished, or pages or minutes read. |
ReadingGoals | Reads a reader's progress on a goal from the journal. |
GoalProgress | What is done, the target, the even pace, what remains, the percent. |
Exceptions
| Type | Role |
|---|---|
Exception\ReadingQuestsExceptionInterface | Every exception of the library. |
Exception\InvalidReadingQuest | A value out of its shape or its bounds. |
Exception\UnknownBook | The shelf holds no book of this identifier. |