1 package com.moiseum.wolnelektury.view.book;
3 import android.content.Context;
5 import com.moiseum.wolnelektury.connection.models.BookDetailsModel;
6 import com.moiseum.wolnelektury.view.book.components.ProgressDownloadButton;
9 * Created by Piotr Ostrowski on 17.11.2017.
12 public interface BookView {
14 void initializeBookView(BookDetailsModel book);
16 void changeDownloadButtonState(ProgressDownloadButton.ProgressDownloadButtonState state, boolean forAudiobook);
18 void showCurrentStateProgress(int percentage, boolean forAudiobook);
20 void showInitializationError();
22 void showDownloadFileError();
24 void startShareActivity(String shareUrl);
28 void openBook(String downloadedBookUrl);
30 void launchPlayer(BookDetailsModel book);
32 void updateReadingProgress(int currentChapter, int count, boolean forAudiobook);
34 void startLikeClicked();
36 void stopLikeClicked();
38 void showFavouriteButton(BookDetailsModel book);
40 void showPremiumLock(boolean lock);