aboutsummaryrefslogtreecommitdiff
path: root/src/models.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add fetching of the spine and table of contentsA Farzat7 days1-2/+23
|
* Refactor away SearchResponse modelA Farzat7 days1-15/+7
| | | | | | | | | | Its functionality is covered by Paginated. The fetch_metadata function was also replaced by the more generic fetch_all_pages. Given that we are searching by the isbn, we should presumably get only 1 result, so only one call will be made even when fetch_all_pages is used. This behaviour is not documented though, so switching to the metadata endpoint in the future is recommended.
* Add file and chapter details fetchingA Farzat7 days1-0/+27
| | | | | | | | | | Fetching file details allows us to download them to the correct location later. Chapter details are currently limited to is_skippable, which might be used to determine whether to make the corresponding spine item non-linear. Other details such as the title shall be fetched from the spine and table-of-contents endpoints later.
* Add e-book metadata fetchingA Farzat7 days1-0/+25