public Step1Prepare ConvertFromWSObject(MoneroWalletInput data, string Amount)
{
Step1Prepare step1Prepare = new Step1Prepare();
step1Prepare.fee_per_b = data.FeePerB;
step1Prepare.is_sweeping = "false";
step1Prepare.priority = data.Priority;
step1Prepare.sending_amount = Amount;
step1Prepare.passedIn_attemptAt_fee = null;
step1Prepare.payment_id_string = null;
if (!string.IsNullOrEmpty(data.PassedInAttemptAtFee)) step1Prepare.passedIn_attemptAt_fee = data.PassedInAttemptAtFee;
if (!string.IsNullOrEmpty(data.PaymentIdString) && data.PaymentIdString.Length \>\ 10) step1Prepare.payment_id_string = data.PaymentIdString;
if (!string.IsNullOrEmpty(data.fee_mask))
{
step1Prepare.fee_mask = data.fee_mask;
}
else
{
step1Prepare.fee_mask = "10000";
}
List\\ UnspentList = new List\\();
foreach (var usedOutputs in data.UnspentOuts)
{
outs Unspent_Out = new outs();
Unspent_Out.amount = usedOutputs.Amount;
Unspent_Out.global_index = usedOutputs.GlobalIndex;
Unspent_Out.index = usedOutputs.Index.ToString();
Unspent_Out.public_key = usedOutputs.PublicKey;
Unspent_Out.rct = usedOutputs.Rct;
Unspent_Out.tx_pub_key = usedOutputs.TxPubKey;
UnspentList.Add(Unspent_Out);
}
step1Prepare.unspent_outs = UnspentList.ToArray();
return step1Prepare;
}
Step2Prepare ConcertFromWSObjectAndMergeStep1(Step1Response step1Response, MoneroWalletInput data, string Amount, string SpendKey, string ViewKey, string FromAddress, string ToAddress, MixOutput[] mixOuts)