cake_wallet/lib/exchange/exchange_trade_state.dart

21 lines
518 B
Dart
Raw Normal View History

2020-09-21 11:50:26 +00:00
import 'package:cake_wallet/exchange/trade.dart';
2020-01-04 19:31:52 +00:00
abstract class ExchangeTradeState {}
class ExchangeTradeStateInitial extends ExchangeTradeState {}
class TradeIsCreating extends ExchangeTradeState {}
class TradeIsCreatedSuccessfully extends ExchangeTradeState {
2022-10-12 17:09:57 +00:00
TradeIsCreatedSuccessfully({required this.trade});
2020-01-08 12:26:34 +00:00
final Trade trade;
2020-01-04 19:31:52 +00:00
}
class TradeIsCreatedFailure extends ExchangeTradeState {
2022-10-12 17:09:57 +00:00
TradeIsCreatedFailure({required this.title, required this.error});
2020-01-08 12:26:34 +00:00
final String title;
2020-01-08 12:26:34 +00:00
final String error;
}