Esempio n. 1
0
 private async Task CallTransactByQRCodeWebService(string fromAccountNumber, string toAccountNumber, long?amount, string trackingId)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         gridProgress.IsVisible = true;
     });
     try
     {
         Proxies.DCEMVDemoServerClient client = SessionSingleton.GenDCEMVServerApiClient();
         using (SessionSingleton.HttpClient)
         {
             QRCodeTransferTransaction tx = new QRCodeTransferTransaction()
             {
                 Amount      = amount.Value,
                 AccountFrom = fromAccountNumber,
                 AccountTo   = toAccountNumber,
                 TrackingId  = trackingId,
             };
             await client.TransactionQrcodetransferPostAsync(tx.ToJsonString());
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         Device.BeginInvokeOnMainThread(() =>
         {
             gridProgress.IsVisible = false;
         });
     }
 }