feat(all): Implement MAL import for anime and manga lists

This commit is contained in:
2023-04-12 23:04:28 +02:00
parent d407a90724
commit 7530fe5b80
15 changed files with 689 additions and 12 deletions

View File

@@ -0,0 +1,36 @@
part of 'settings_bloc.dart';
enum ImportListType {
// MyAnimeList
mal,
}
abstract class SettingsEvent {}
/// Triggered when an anime list is imported
class AnimeListImportedEvent extends SettingsEvent {
AnimeListImportedEvent(
this.path,
this.type,
);
/// The path to the list we're importing
final String path;
/// The type of list we're importing
final ImportListType type;
}
/// Triggered when a manga list is imported
class MangaListImportedEvent extends SettingsEvent {
MangaListImportedEvent(
this.path,
this.type,
);
/// The path to the list we're importing
final String path;
/// The type of list we're importing
final ImportListType type;
}