CWA-169 | added processing state to TradeState
Oleksandr Sobol committed
Feb 7, 2020 at 13:07 UTC
7c83a71916763d10d42d71318a3fea9c5a4fea9c
1 file changed
+3
lib/src/domain/exchange/trade_state.dart
+3
@@ -26,6 +26,7 @@ class TradeState extends EnumerableItem<String> with Serializable<String> {
26
static const created = TradeState(raw: 'created', title: 'Created');
27
static const finished = TradeState(raw: 'finished', title: 'Finished');
28
static const waiting = TradeState(raw: 'waiting', title: 'Waiting');
29
+ static const processing = TradeState(raw: 'processing', title: 'Processing');
30
31
static TradeState deserialize({String raw}) {
32
switch (raw) {
@@ -59,6 +60,8 @@ class TradeState extends EnumerableItem<String> with Serializable<String> {
60
return finished;
61
case 'waiting':
62
return waiting;
63
+ case 'processing':
64
+ return processing;
65
default:
66
return null;
67
}