35 lines
744 B
Dart
35 lines
744 B
Dart
class JniIsolateMessage {
|
|
final int id;
|
|
final JniIsolateMessageType type;
|
|
final Map<String, dynamic> args;
|
|
|
|
JniIsolateMessage({required this.id, required this.type, required this.args});
|
|
}
|
|
|
|
class JniIsolateResponse {
|
|
final int id;
|
|
final dynamic results;
|
|
|
|
JniIsolateResponse({required this.id, this.results});
|
|
}
|
|
|
|
class JniIsolateError {
|
|
final int id;
|
|
final String error;
|
|
final String stackTrace;
|
|
|
|
JniIsolateError({required this.id, required this.error, required this.stackTrace});
|
|
}
|
|
|
|
enum JniIsolateMessageType {
|
|
getAnimeSearchResults,
|
|
getMangaSearchResults,
|
|
getEpisodeList,
|
|
getChapterList,
|
|
getVideoList,
|
|
getPageList,
|
|
loadAnimeExtension,
|
|
loadMangaExtension,
|
|
unloadAnimeExtension,
|
|
unloadMangaExtension,
|
|
} |