All events in Kotlin
This commit is contained in:
parent
aaef738dda
commit
6b326cfb79
8 changed files with 21 additions and 79 deletions
|
@ -1,13 +0,0 @@
|
|||
package eu.kanade.tachiyomi.event;
|
||||
|
||||
public class ChapterCountEvent {
|
||||
private int count;
|
||||
|
||||
public ChapterCountEvent(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package eu.kanade.tachiyomi.event
|
||||
|
||||
class ChapterCountEvent(val count: Int)
|
|
@ -1,24 +0,0 @@
|
|||
package eu.kanade.tachiyomi.event;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import eu.kanade.tachiyomi.data.database.models.Chapter;
|
||||
import eu.kanade.tachiyomi.data.database.models.Manga;
|
||||
|
||||
public class DownloadChaptersEvent {
|
||||
private Manga manga;
|
||||
private List<Chapter> chapters;
|
||||
|
||||
public DownloadChaptersEvent(Manga manga, List<Chapter> chapters) {
|
||||
this.manga = manga;
|
||||
this.chapters = chapters;
|
||||
}
|
||||
|
||||
public Manga getManga() {
|
||||
return manga;
|
||||
}
|
||||
|
||||
public List<Chapter> getChapters() {
|
||||
return chapters;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package eu.kanade.tachiyomi.event
|
||||
|
||||
import eu.kanade.tachiyomi.data.database.models.Chapter
|
||||
import eu.kanade.tachiyomi.data.database.models.Manga
|
||||
|
||||
class DownloadChaptersEvent(val manga: Manga, val chapters: List<Chapter>)
|
|
@ -1,12 +0,0 @@
|
|||
package eu.kanade.tachiyomi.event;
|
||||
|
||||
import eu.kanade.tachiyomi.data.database.models.Manga;
|
||||
|
||||
public class MangaEvent {
|
||||
|
||||
public final Manga manga;
|
||||
|
||||
public MangaEvent(Manga manga) {
|
||||
this.manga = manga;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package eu.kanade.tachiyomi.event
|
||||
|
||||
import eu.kanade.tachiyomi.data.database.models.Manga
|
||||
|
||||
class MangaEvent(val manga: Manga)
|
|
@ -1,30 +0,0 @@
|
|||
package eu.kanade.tachiyomi.event;
|
||||
|
||||
import eu.kanade.tachiyomi.data.database.models.Chapter;
|
||||
import eu.kanade.tachiyomi.data.database.models.Manga;
|
||||
import eu.kanade.tachiyomi.data.source.base.Source;
|
||||
|
||||
public class ReaderEvent {
|
||||
|
||||
private Source source;
|
||||
private Manga manga;
|
||||
private Chapter chapter;
|
||||
|
||||
public ReaderEvent(Source source, Manga manga, Chapter chapter) {
|
||||
this.source = source;
|
||||
this.manga = manga;
|
||||
this.chapter = chapter;
|
||||
}
|
||||
|
||||
public Source getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public Manga getManga() {
|
||||
return manga;
|
||||
}
|
||||
|
||||
public Chapter getChapter() {
|
||||
return chapter;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package eu.kanade.tachiyomi.event
|
||||
|
||||
import eu.kanade.tachiyomi.data.database.models.Chapter
|
||||
import eu.kanade.tachiyomi.data.database.models.Manga
|
||||
import eu.kanade.tachiyomi.data.source.base.Source
|
||||
|
||||
class ReaderEvent(val source: Source, val manga: Manga, val chapter: Chapter)
|
Reference in a new issue