mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-11 13:24:51 +00:00
30 lines
734 B
Dart
30 lines
734 B
Dart
enum ReceivePageOption {
|
|
mainnet,
|
|
anonPayInvoice,
|
|
anonPayDonationLink,
|
|
lightningInvoice,
|
|
lightningOnchain;
|
|
|
|
@override
|
|
String toString() {
|
|
String label = '';
|
|
switch (this) {
|
|
case ReceivePageOption.mainnet:
|
|
label = 'Mainnet';
|
|
break;
|
|
case ReceivePageOption.anonPayInvoice:
|
|
label = 'Trocador AnonPay Invoice';
|
|
break;
|
|
case ReceivePageOption.anonPayDonationLink:
|
|
label = 'Trocador AnonPay Donation Link';
|
|
break;
|
|
case ReceivePageOption.lightningInvoice:
|
|
label = 'Lightning via Invoice';
|
|
break;
|
|
case ReceivePageOption.lightningOnchain:
|
|
label = 'Lightning via BTC address';
|
|
break;
|
|
}
|
|
return label;
|
|
}
|
|
}
|