cake_wallet/lib/src/stores/exchange/exchange_trade_state.dart

20 lines
529 B
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
import 'package:flutter/foundation.dart';
import 'package:cake_wallet/src/domain/exchange/trade.dart';
abstract class ExchangeTradeState {}
class ExchangeTradeStateInitial extends ExchangeTradeState {}
class TradeIsCreating extends ExchangeTradeState {}
class TradeIsCreatedSuccessfully extends ExchangeTradeState {
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 {
TradeIsCreatedFailure({@required this.error});
2020-01-08 12:26:34 +00:00
final String error;
2020-01-04 19:31:52 +00:00
}