2024-12-16 22:59:15 +04:00
|
|
|
import 'package:flutter_android_app/components/locale/l10n/app_localizations.dart';
|
|
|
|
|
2024-12-12 00:08:22 +04:00
|
|
|
abstract class HomeEvent {
|
|
|
|
const HomeEvent();
|
|
|
|
}
|
|
|
|
|
|
|
|
class HomeLoadDataEvent extends HomeEvent {
|
|
|
|
final String? search;
|
|
|
|
final int? nextPage;
|
2024-12-16 22:59:15 +04:00
|
|
|
final AppLocale? locale;
|
2024-12-30 11:57:56 +04:00
|
|
|
final String currencyId;
|
2024-12-12 00:08:22 +04:00
|
|
|
|
2024-12-30 11:57:56 +04:00
|
|
|
const HomeLoadDataEvent({
|
|
|
|
this.search,
|
|
|
|
this.nextPage,
|
|
|
|
this.locale,
|
|
|
|
required this.currencyId,
|
|
|
|
});
|
2024-12-12 00:08:22 +04:00
|
|
|
}
|
2024-12-17 12:10:42 +04:00
|
|
|
|
|
|
|
class HomeLoadFavouritesDataEvent extends HomeEvent {
|
|
|
|
final List<String>? ids;
|
|
|
|
final int? nextPage;
|
|
|
|
final AppLocale? locale;
|
2024-12-30 11:57:56 +04:00
|
|
|
final String currencyId;
|
2024-12-17 12:10:42 +04:00
|
|
|
|
2024-12-30 11:57:56 +04:00
|
|
|
const HomeLoadFavouritesDataEvent({
|
|
|
|
this.ids,
|
|
|
|
this.nextPage,
|
|
|
|
this.locale,
|
|
|
|
required this.currencyId,
|
|
|
|
});
|
2024-12-17 12:10:42 +04:00
|
|
|
}
|