2023-12-06 13:21:39 +00:00
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
2023-03-24 15:26:42 +00:00
|
|
|
|
|
|
|
enum ReceivePageOption {
|
|
|
|
mainnet,
|
|
|
|
anonPayInvoice,
|
|
|
|
anonPayDonationLink;
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
String label = '';
|
|
|
|
switch (this) {
|
|
|
|
case ReceivePageOption.mainnet:
|
2023-12-06 13:21:39 +00:00
|
|
|
label = S.current.mainnet;
|
2023-03-24 15:26:42 +00:00
|
|
|
break;
|
|
|
|
case ReceivePageOption.anonPayInvoice:
|
2023-12-06 13:21:39 +00:00
|
|
|
label = S.current.trocador_anonpay_invoice;
|
2023-03-24 15:26:42 +00:00
|
|
|
break;
|
|
|
|
case ReceivePageOption.anonPayDonationLink:
|
2023-12-06 13:21:39 +00:00
|
|
|
label = S.current.trocador_anonpay_donation_link;
|
2023-03-24 15:26:42 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
}
|