tachiyomi/app/src/main/java/eu/kanade/mangafeed/event/LibraryMangasEvent.java
2015-12-30 19:10:28 +01:00

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);
}
}