All events in Kotlin

This commit is contained in:
len 2016-03-19 00:16:27 +01:00
parent aaef738dda
commit 6b326cfb79
8 changed files with 21 additions and 79 deletions

View File

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

View File

@ -0,0 +1,3 @@
package eu.kanade.tachiyomi.event
class ChapterCountEvent(val count: Int)

View File

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

View File

@ -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>)

View File

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

View File

@ -0,0 +1,5 @@
package eu.kanade.tachiyomi.event
import eu.kanade.tachiyomi.data.database.models.Manga
class MangaEvent(val manga: Manga)

View File

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

View File

@ -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)