Files
front-hokm/lib/feature/shop/presentation/bloc/shop_event.dart
T
2026-07-05 16:03:15 +03:30

23 lines
652 B
Dart

abstract class ShopEvent {}
class LoadShopEvent extends ShopEvent {}
class BuyCardEvent extends ShopEvent {
final String cardId;
BuyCardEvent(this.cardId);
}
class SelectCardEvent extends ShopEvent {
final String cardId;
SelectCardEvent(this.cardId);
}
class PurchaseEvent extends ShopEvent {
final String kind;
final String productId; // شناسه‌ی کاتالوگ (برای اعتباردهی در بک‌اند)
final String sku; // شناسه‌ی محصول در پنلِ فروشگاه (برای پرداختِ native)
PurchaseEvent(this.kind, this.productId, {this.sku = ''});
}
class AdRewardEvent extends ShopEvent {}