23 lines
652 B
Dart
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 {}
|