OlegKlimenko / Plamber-Android

The Android application for Plamber project.
https://plamber.com.ua/
Apache License 2.0
1 stars 0 forks source link

Book objects output/processing refactorings. #30

Closed OlegKlimenko closed 6 years ago

OlegKlimenko commented 6 years ago

I've added param url attribute with url to selected book page. This is needed for example when you go on recommendations tab user see list with books with main info (name, author etc.). And when user click on the book, he must be redirected to the page with detailed info of this book, where will be also ability to start reading, comment, rate etc. as on the selected book page in the Web UI. So, the new book object will be like this:

{
            "book_name": "PRIVATE 2",
            "id_author": "DNO",
            "id_category": "IT",
            "description": "ldkgjfdlkg",
            "language": "RU",
            "photo": "/media/book_cover/book_7_OwRlB3u.png",
            "book_file": "/media/book_file/Genri_Layon_Oldi_Chetyre_vsadnika_apokalipsisa_ili_Etot_den_my_priblizhali_kak_D7603Vp.pdf",
            "who_added": "admin",
            "upload_date": "2017-08-10T10:07:20.409790",
            "private_book": true,
            "url": "/api/v1/book/7/"
        },

Please do refactorings where you parse this data if needed.

OlegKlimenko commented 6 years ago

Book objects output/processing refactorings.