mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
CWA-169 | added processing state to TradeState
This commit is contained in:
parent
d6cf32c764
commit
7c83a71916
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,7 @@ class TradeState extends EnumerableItem<String> with Serializable<String> {
|
|||
static const created = TradeState(raw: 'created', title: 'Created');
|
||||
static const finished = TradeState(raw: 'finished', title: 'Finished');
|
||||
static const waiting = TradeState(raw: 'waiting', title: 'Waiting');
|
||||
static const processing = TradeState(raw: 'processing', title: 'Processing');
|
||||
|
||||
static TradeState deserialize({String raw}) {
|
||||
switch (raw) {
|
||||
|
@ -59,6 +60,8 @@ class TradeState extends EnumerableItem<String> with Serializable<String> {
|
|||
return finished;
|
||||
case 'waiting':
|
||||
return waiting;
|
||||
case 'processing':
|
||||
return processing;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue