Add an option to get unread chapters of mangas

This commit is contained in:
inorichi
2015-10-01 14:30:08 +02:00
parent db49c3ee88
commit 4e795b69e5
7 changed files with 89 additions and 8 deletions

View File

@@ -70,12 +70,36 @@ public class Manga {
@StorIOSQLiteColumn(name = MangasTable.COLUMN_CHAPTER_ORDER)
public int chapter_order;
@NonNull
public int unread = 0;
public Manga() {}
public Manga(String title) {
this.title = title;
}
public Manga(long id, String title, String author, String artist, String url,
String description, String genre, String status, int rank,
String thumbnail_url) {
this.id = id;
this.title = title;
this.author = author;
this.artist = artist;
this.url = url;
this.description = description;
this.genre = genre;
this.status = status;
this.rank = rank;
this.thumbnail_url = thumbnail_url;
}
public static Manga newManga(long id, String title, String author, String artist, String url,
String description, String genre, String status, int rank,
String thumbnail_url) {
return new Manga(id, title, author, artist, url, description, genre, status, rank, thumbnail_url);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;