2020-01-04 19:31:52 +00:00
|
|
|
import 'package:flutter/foundation.dart';
|
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 {
|
|
|
|
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 {
|
2020-12-02 19:51:06 +00:00
|
|
|
TradeIsCreatedFailure({@required this.title, @required this.error});
|
2020-01-08 12:26:34 +00:00
|
|
|
|
2020-12-02 19:51:06 +00:00
|
|
|
final String title;
|
2020-01-08 12:26:34 +00:00
|
|
|
final String error;
|
2020-01-04 19:31:52 +00:00
|
|
|
}
|