PreferencesPayload constructor
PreferencesPayload({
- String? userLanguage,
- Country? userCountry,
- Iterable<
TradeCurrency> ? traditionalCurrencies, - Iterable<
TradeCurrency> ? cryptoCurrencies, - BlockChainExplorer? blockChainExplorerMainNet,
- BlockChainExplorer? blockChainExplorerTestNet,
- String? backupDirectory,
- bool? autoSelectArbitrators,
- Map<
String, bool> ? dontShowAgainMap, - bool? tacAccepted,
- int? useTorForXmrOrdinal,
- bool? showOwnOffersInOfferBook,
- TradeCurrency? preferredTradeCurrency,
- Int64? withdrawalTxFeeInVbytes,
- bool? useCustomWithdrawalTxFee,
- double? maxPriceDistanceInPercent,
- String? offerBookChartScreenCurrencyCode,
- String? tradeChartsScreenCurrencyCode,
- String? buyScreenCurrencyCode,
- String? sellScreenCurrencyCode,
- int? tradeStatisticsTickUnitIndex,
- bool? resyncSpvRequested,
- bool? sortMarketCurrenciesNumerically,
- bool? usePercentageBasedPrice,
- Map<
String, String> ? peerTagMap, - String? moneroNodes,
- Iterable<
String> ? ignoreTradersList, - String? directoryChooserPath,
- bool? useAnimations,
- PaymentAccount? selectedPaymentAccountForCreateOffer,
- Iterable<
String> ? bridgeAddresses, - int? bridgeOptionOrdinal,
- int? torTransportOrdinal,
- String? customBridges,
- int? moneroNodesOptionOrdinal,
- String? referralId,
- String? phoneKeyAndToken,
- bool? useSoundForMobileNotifications,
- bool? useTradeNotifications,
- bool? useMarketNotifications,
- bool? usePriceNotifications,
- bool? useStandbyMode,
- String? rpcUser,
- String? rpcPw,
- String? takeOfferSelectedPaymentAccountId,
- double? buyerSecurityDepositAsPercent,
- int? ignoreDustThreshold,
- double? buyerSecurityDepositAsPercentForCrypto,
- int? blockNotifyPort,
- int? cssTheme,
- bool? tacAcceptedV120,
- Iterable<
AutoConfirmSettings> ? autoConfirmSettings, - double? bsqAverageTrimThreshold,
- bool? hideNonAccountPaymentMethods,
- bool? showOffersMatchingMyAccounts,
- bool? denyApiTaker,
- bool? notifyOnPreRelease,
- XmrNodeSettings? xmrNodeSettings,
- int? clearDataAfterDays,
- String? buyScreenCryptoCurrencyCode,
- String? sellScreenCryptoCurrencyCode,
- bool? splitOfferOutput,
Implementation
factory PreferencesPayload({
$core.String? userLanguage,
Country? userCountry,
$core.Iterable<TradeCurrency>? traditionalCurrencies,
$core.Iterable<TradeCurrency>? cryptoCurrencies,
BlockChainExplorer? blockChainExplorerMainNet,
BlockChainExplorer? blockChainExplorerTestNet,
$core.String? backupDirectory,
$core.bool? autoSelectArbitrators,
$core.Map<$core.String, $core.bool>? dontShowAgainMap,
$core.bool? tacAccepted,
$core.int? useTorForXmrOrdinal,
$core.bool? showOwnOffersInOfferBook,
TradeCurrency? preferredTradeCurrency,
$fixnum.Int64? withdrawalTxFeeInVbytes,
$core.bool? useCustomWithdrawalTxFee,
$core.double? maxPriceDistanceInPercent,
$core.String? offerBookChartScreenCurrencyCode,
$core.String? tradeChartsScreenCurrencyCode,
$core.String? buyScreenCurrencyCode,
$core.String? sellScreenCurrencyCode,
$core.int? tradeStatisticsTickUnitIndex,
$core.bool? resyncSpvRequested,
$core.bool? sortMarketCurrenciesNumerically,
$core.bool? usePercentageBasedPrice,
$core.Map<$core.String, $core.String>? peerTagMap,
$core.String? moneroNodes,
$core.Iterable<$core.String>? ignoreTradersList,
$core.String? directoryChooserPath,
$core.bool? useAnimations,
PaymentAccount? selectedPaymentAccountForCreateOffer,
$core.Iterable<$core.String>? bridgeAddresses,
$core.int? bridgeOptionOrdinal,
$core.int? torTransportOrdinal,
$core.String? customBridges,
$core.int? moneroNodesOptionOrdinal,
$core.String? referralId,
$core.String? phoneKeyAndToken,
$core.bool? useSoundForMobileNotifications,
$core.bool? useTradeNotifications,
$core.bool? useMarketNotifications,
$core.bool? usePriceNotifications,
$core.bool? useStandbyMode,
$core.String? rpcUser,
$core.String? rpcPw,
$core.String? takeOfferSelectedPaymentAccountId,
$core.double? buyerSecurityDepositAsPercent,
$core.int? ignoreDustThreshold,
$core.double? buyerSecurityDepositAsPercentForCrypto,
$core.int? blockNotifyPort,
$core.int? cssTheme,
$core.bool? tacAcceptedV120,
$core.Iterable<AutoConfirmSettings>? autoConfirmSettings,
$core.double? bsqAverageTrimThreshold,
$core.bool? hideNonAccountPaymentMethods,
$core.bool? showOffersMatchingMyAccounts,
$core.bool? denyApiTaker,
$core.bool? notifyOnPreRelease,
XmrNodeSettings? xmrNodeSettings,
$core.int? clearDataAfterDays,
$core.String? buyScreenCryptoCurrencyCode,
$core.String? sellScreenCryptoCurrencyCode,
$core.bool? splitOfferOutput,
}) {
final $result = create();
if (userLanguage != null) {
$result.userLanguage = userLanguage;
}
if (userCountry != null) {
$result.userCountry = userCountry;
}
if (traditionalCurrencies != null) {
$result.traditionalCurrencies.addAll(traditionalCurrencies);
}
if (cryptoCurrencies != null) {
$result.cryptoCurrencies.addAll(cryptoCurrencies);
}
if (blockChainExplorerMainNet != null) {
$result.blockChainExplorerMainNet = blockChainExplorerMainNet;
}
if (blockChainExplorerTestNet != null) {
$result.blockChainExplorerTestNet = blockChainExplorerTestNet;
}
if (backupDirectory != null) {
$result.backupDirectory = backupDirectory;
}
if (autoSelectArbitrators != null) {
$result.autoSelectArbitrators = autoSelectArbitrators;
}
if (dontShowAgainMap != null) {
$result.dontShowAgainMap.addAll(dontShowAgainMap);
}
if (tacAccepted != null) {
$result.tacAccepted = tacAccepted;
}
if (useTorForXmrOrdinal != null) {
$result.useTorForXmrOrdinal = useTorForXmrOrdinal;
}
if (showOwnOffersInOfferBook != null) {
$result.showOwnOffersInOfferBook = showOwnOffersInOfferBook;
}
if (preferredTradeCurrency != null) {
$result.preferredTradeCurrency = preferredTradeCurrency;
}
if (withdrawalTxFeeInVbytes != null) {
$result.withdrawalTxFeeInVbytes = withdrawalTxFeeInVbytes;
}
if (useCustomWithdrawalTxFee != null) {
$result.useCustomWithdrawalTxFee = useCustomWithdrawalTxFee;
}
if (maxPriceDistanceInPercent != null) {
$result.maxPriceDistanceInPercent = maxPriceDistanceInPercent;
}
if (offerBookChartScreenCurrencyCode != null) {
$result.offerBookChartScreenCurrencyCode = offerBookChartScreenCurrencyCode;
}
if (tradeChartsScreenCurrencyCode != null) {
$result.tradeChartsScreenCurrencyCode = tradeChartsScreenCurrencyCode;
}
if (buyScreenCurrencyCode != null) {
$result.buyScreenCurrencyCode = buyScreenCurrencyCode;
}
if (sellScreenCurrencyCode != null) {
$result.sellScreenCurrencyCode = sellScreenCurrencyCode;
}
if (tradeStatisticsTickUnitIndex != null) {
$result.tradeStatisticsTickUnitIndex = tradeStatisticsTickUnitIndex;
}
if (resyncSpvRequested != null) {
$result.resyncSpvRequested = resyncSpvRequested;
}
if (sortMarketCurrenciesNumerically != null) {
$result.sortMarketCurrenciesNumerically = sortMarketCurrenciesNumerically;
}
if (usePercentageBasedPrice != null) {
$result.usePercentageBasedPrice = usePercentageBasedPrice;
}
if (peerTagMap != null) {
$result.peerTagMap.addAll(peerTagMap);
}
if (moneroNodes != null) {
$result.moneroNodes = moneroNodes;
}
if (ignoreTradersList != null) {
$result.ignoreTradersList.addAll(ignoreTradersList);
}
if (directoryChooserPath != null) {
$result.directoryChooserPath = directoryChooserPath;
}
if (useAnimations != null) {
$result.useAnimations = useAnimations;
}
if (selectedPaymentAccountForCreateOffer != null) {
$result.selectedPaymentAccountForCreateOffer = selectedPaymentAccountForCreateOffer;
}
if (bridgeAddresses != null) {
$result.bridgeAddresses.addAll(bridgeAddresses);
}
if (bridgeOptionOrdinal != null) {
$result.bridgeOptionOrdinal = bridgeOptionOrdinal;
}
if (torTransportOrdinal != null) {
$result.torTransportOrdinal = torTransportOrdinal;
}
if (customBridges != null) {
$result.customBridges = customBridges;
}
if (moneroNodesOptionOrdinal != null) {
$result.moneroNodesOptionOrdinal = moneroNodesOptionOrdinal;
}
if (referralId != null) {
$result.referralId = referralId;
}
if (phoneKeyAndToken != null) {
$result.phoneKeyAndToken = phoneKeyAndToken;
}
if (useSoundForMobileNotifications != null) {
$result.useSoundForMobileNotifications = useSoundForMobileNotifications;
}
if (useTradeNotifications != null) {
$result.useTradeNotifications = useTradeNotifications;
}
if (useMarketNotifications != null) {
$result.useMarketNotifications = useMarketNotifications;
}
if (usePriceNotifications != null) {
$result.usePriceNotifications = usePriceNotifications;
}
if (useStandbyMode != null) {
$result.useStandbyMode = useStandbyMode;
}
if (rpcUser != null) {
$result.rpcUser = rpcUser;
}
if (rpcPw != null) {
$result.rpcPw = rpcPw;
}
if (takeOfferSelectedPaymentAccountId != null) {
$result.takeOfferSelectedPaymentAccountId = takeOfferSelectedPaymentAccountId;
}
if (buyerSecurityDepositAsPercent != null) {
$result.buyerSecurityDepositAsPercent = buyerSecurityDepositAsPercent;
}
if (ignoreDustThreshold != null) {
$result.ignoreDustThreshold = ignoreDustThreshold;
}
if (buyerSecurityDepositAsPercentForCrypto != null) {
$result.buyerSecurityDepositAsPercentForCrypto = buyerSecurityDepositAsPercentForCrypto;
}
if (blockNotifyPort != null) {
$result.blockNotifyPort = blockNotifyPort;
}
if (cssTheme != null) {
$result.cssTheme = cssTheme;
}
if (tacAcceptedV120 != null) {
$result.tacAcceptedV120 = tacAcceptedV120;
}
if (autoConfirmSettings != null) {
$result.autoConfirmSettings.addAll(autoConfirmSettings);
}
if (bsqAverageTrimThreshold != null) {
$result.bsqAverageTrimThreshold = bsqAverageTrimThreshold;
}
if (hideNonAccountPaymentMethods != null) {
$result.hideNonAccountPaymentMethods = hideNonAccountPaymentMethods;
}
if (showOffersMatchingMyAccounts != null) {
$result.showOffersMatchingMyAccounts = showOffersMatchingMyAccounts;
}
if (denyApiTaker != null) {
$result.denyApiTaker = denyApiTaker;
}
if (notifyOnPreRelease != null) {
$result.notifyOnPreRelease = notifyOnPreRelease;
}
if (xmrNodeSettings != null) {
$result.xmrNodeSettings = xmrNodeSettings;
}
if (clearDataAfterDays != null) {
$result.clearDataAfterDays = clearDataAfterDays;
}
if (buyScreenCryptoCurrencyCode != null) {
$result.buyScreenCryptoCurrencyCode = buyScreenCryptoCurrencyCode;
}
if (sellScreenCryptoCurrencyCode != null) {
$result.sellScreenCryptoCurrencyCode = sellScreenCryptoCurrencyCode;
}
if (splitOfferOutput != null) {
$result.splitOfferOutput = splitOfferOutput;
}
return $result;
}