| 1 | import 'package:cake_wallet/exchange/trade.dart'; |
| 2 | |
| 3 | abstract class ExchangeTradeState {} |
| 4 | |
| 5 | class ExchangeTradeStateInitial extends ExchangeTradeState {} |
| 6 | |
| 7 | class TradeIsCreating extends ExchangeTradeState {} |
| 8 | |
| 9 | class TradeIsCreatedSuccessfully extends ExchangeTradeState { |
| 10 | TradeIsCreatedSuccessfully({required this.trade}); |
| 11 | |
| 12 | final Trade trade; |
| 13 | } |
| 14 | |
| 15 | class TradeIsCreatedFailure extends ExchangeTradeState { |
| 16 | TradeIsCreatedFailure({required this.title, required this.error}); |
| 17 | |
| 18 | final String title; |
| 19 | final String error; |
| 20 | } |