Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / view / book / BookView.java
1 package com.moiseum.wolnelektury.view.book;
2
3 import android.content.Context;
4
5 import com.moiseum.wolnelektury.connection.models.BookDetailsModel;
6 import com.moiseum.wolnelektury.view.book.components.ProgressDownloadButton;
7
8 /**
9  * Created by Piotr Ostrowski on 17.11.2017.
10  */
11
12 public interface BookView {
13
14         void initializeBookView(BookDetailsModel book);
15
16         void changeDownloadButtonState(ProgressDownloadButton.ProgressDownloadButtonState state, boolean forAudiobook);
17
18         void showCurrentStateProgress(int percentage, boolean forAudiobook);
19
20         void showInitializationError();
21
22         void showDownloadFileError();
23
24         void startShareActivity(String shareUrl);
25
26         Context getContext();
27
28         void openBook(String downloadedBookUrl);
29
30         void launchPlayer(BookDetailsModel book);
31
32         void updateReadingProgress(int currentChapter, int count, boolean forAudiobook);
33
34         void startLikeClicked();
35
36         void stopLikeClicked();
37
38         void showFavouriteButton(BookDetailsModel book);
39
40         void showPremiumLock(boolean lock);
41 }