cake_wallet/lib/entities/receive_page_option.dart

31 lines
734 B
Dart
Raw Normal View History

enum ReceivePageOption {
mainnet,
anonPayInvoice,
2024-02-14 17:34:52 +00:00
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;
2024-02-14 17:34:52 +00:00
case ReceivePageOption.lightningInvoice:
2024-02-15 22:27:05 +00:00
label = 'Lightning via Invoice';
2024-02-14 17:34:52 +00:00
break;
case ReceivePageOption.lightningOnchain:
2024-02-15 22:27:05 +00:00
label = 'Lightning via BTC address';
2024-02-14 17:34:52 +00:00
break;
}
return label;
}
}