ErrorCode ParseResponseWithFeesHandler(int command_handle, string resp_json, PaymentMethodResultDelegate cb) { ParseResponseWithFeesAsync(resp_json) .ContinueWith(utxoJson => { var result = cb(command_handle, 0, utxoJson.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
ErrorCode BuildPaymentRequestHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string inputs_json, string outputs_json, string extra, PaymentMethodResultDelegate cb) { BuildPaymentRequestAsync(submitter_did, inputs_json, outputs_json, extra) .ContinueWith(paymentReqJson => { var result = cb(command_handle, 0, paymentReqJson.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
ErrorCode BuildGetPaymentSourcesRequstHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string payment_address, PaymentMethodResultDelegate cb) { BuildGetPaymentSourcesRequestAsync(submitter_did, payment_address) .ContinueWith(getUtxoTxnJson => { var result = cb(command_handle, 0, getUtxoTxnJson.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
ErrorCode CreatePaymentAddressHandler(int command_handle, IntPtr wallet_handle, string config, PaymentMethodResultDelegate cb) { CreatePaymentAddressAsync(config) .ContinueWith(paymentAddress => { var result = cb(command_handle, 0, paymentAddress.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
ErrorCode BuildVerifyPaymentRequestHandler(int command_handle, IntPtr wallet_handle, string submitterDid, string receipt, PaymentMethodResultDelegate cb) { BuildVerifyPaymentRequestAsync(submitterDid, receipt) .ContinueWith(feesJson => { var result = cb(command_handle, 0, feesJson.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
ErrorCode ParseVerifyPaymentResponseHandler(int command_handle, string responseJson, PaymentMethodResultDelegate cb) { ParseVerifyPaymentResponseAsync(responseJson) .ContinueWith(feesJson => { var result = cb(command_handle, 0, feesJson.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
ErrorCode AddRequestFeesHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string req_json, string inputs_json, string outputs_json, PaymentMethodResultDelegate cb) { AddRequestFeesAsync(submitter_did, req_json, inputs_json, outputs_json) .ContinueWith(reqWithFeesJson => { var result = cb(command_handle, 0, reqWithFeesJson.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
ErrorCode BuildGetTxnFeesReqHandler(int command_handle, IntPtr wallet_handle, string submitter_did, PaymentMethodResultDelegate cb) { BuildGetTxnFeesAsync(submitter_did) .ContinueWith(getTxnFeesJson => { var result = cb(command_handle, 0, getTxnFeesJson.Result); CallbackHelper.CheckCallback(result); }); return(ErrorCode.Success); }
private ErrorCode ParseVerifyPaymentResponseHandler(int command_handle, string responseJson, PaymentMethodResultDelegate cb) { // var result = cb(command_handle, 0, feesJson.Result); return(ErrorCode.Success); }
private ErrorCode CreatePaymentAddressHandler(int command_handle, IntPtr wallet_handle, string config, PaymentMethodResultDelegate cb) { string paymentAddress = _handler.CreatePaymentAddress(); cb(command_handle, (int)ErrorCode.Success, paymentAddress); return(ErrorCode.Success); }
private ErrorCode BuildVerifyPaymentRequestHandler(int command_handle, IntPtr wallet_handle, string submitterDid, string receipt, PaymentMethodResultDelegate cb) { return(ErrorCode.Success); }
private ErrorCode ParseGetTxnFeesResponseHandler(int command_handle, string resp_json, PaymentMethodResultDelegate cb) { return(ErrorCode.Success); }
private ErrorCode BuildGetTxnFeesReqHandler(int command_handle, IntPtr wallet_handle, string submitter_did, PaymentMethodResultDelegate cb) { return(ErrorCode.Success); }
private ErrorCode BuildMintReqHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string outputs_json, string extra, PaymentMethodResultDelegate cb) { return(ErrorCode.Success); }
private ErrorCode BuildGetPaymentSourcesRequstHandler(int command_handle, IntPtr wallet_handle, string submitter_did, string payment_address, PaymentMethodResultDelegate cb) { return(ErrorCode.Success); }