cake_wallet/lib/entities/receive_page_option.dart
2024-02-15 17:27:05 -05:00

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;
}
}