feat(all): Implement MAL import for anime and manga lists
This commit is contained in:
36
lib/src/ui/bloc/settings_event.dart
Normal file
36
lib/src/ui/bloc/settings_event.dart
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user