Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / view / library / LibraryView.java
1 package com.moiseum.wolnelektury.view.library;
2
3 import com.moiseum.wolnelektury.connection.models.BookDetailsModel;
4 import com.moiseum.wolnelektury.connection.models.BookModel;
5 import com.moiseum.wolnelektury.view.book.BookType;
6
7 import java.util.List;
8
9 /**
10  * @author golonkos
11  */
12
13 interface LibraryView {
14         void setNewest(List<BookModel> books);
15
16         void setNewestProgressVisible(boolean visible);
17
18         void showNewestError(Exception e);
19
20         void setRecommended(List<BookModel> books);
21
22         void setRecommendedProgressVisible(boolean visible);
23
24         void showRecommendedError(Exception e);
25
26         void setNowReadingVisibility(boolean visible);
27
28         void setNowReading(List<BookModel> books);
29
30         void setNowReadingProgressVisible(boolean visible);
31
32         void showNowReadingError(Exception e);
33
34         void openBookDetailsView(String slug, BookType bookType);
35
36         void initHeader(BookDetailsModel item);
37
38         void setProgressContainerVisible(boolean visible);
39
40         void showHeaderError();
41
42         void showHeaderEmpty(boolean userLoggedIn);
43
44         void setHeaderProgressVisible(boolean visible);
45
46         void showBecomeAFriendHeader(boolean premium);
47 }