28 lines
640 B
Java
28 lines
640 B
Java
package eu.kanade.mangafeed.event;
|
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import eu.kanade.mangafeed.data.database.models.Category;
|
|
import eu.kanade.mangafeed.data.database.models.Manga;
|
|
|
|
public class LibraryMangasEvent {
|
|
|
|
private final Map<Integer, List<Manga>> mangas;
|
|
|
|
public LibraryMangasEvent(Map<Integer, List<Manga>> mangas) {
|
|
this.mangas = mangas;
|
|
}
|
|
|
|
public Map<Integer, List<Manga>> getMangas() {
|
|
return mangas;
|
|
}
|
|
|
|
@Nullable
|
|
public List<Manga> getMangasForCategory(Category category) {
|
|
return mangas.get(category.id);
|
|
}
|
|
}
|