Beispiel #1
0
 public static async Task<List<PaymentInformation>> ReturnQueueAsync()
 {
     _storageService = new StorageService();
     var currentQueue = await _storageService.GetText("queueModel");
     if (!string.IsNullOrEmpty(currentQueue))
     {
         var listQueue = JsonConvert.DeserializeObject<List<PaymentInformation>>(currentQueue);
         if (listQueue == null)
             return new List<PaymentInformation>();
         else
             return listQueue;
     }
     else
         return new List<PaymentInformation>();
 }
Beispiel #2
0
 public PaymentPageViewModel(INavigation navigationService)
 {
     PayCommand = new DelegateCommand(Pay);
     _navigationService = navigationService;
     RecieverArtist = Consts.RecieverArtist;
     _storageService = new StorageService();
     Task.Run(async () =>
     {
         var payInfo = await _storageService.GetText("paymentInfo");
         if (!string.IsNullOrEmpty(payInfo))
         {
             var payObj = JsonConvert.DeserializeObject<PaymentInformation>(payInfo);
             CVV = payObj.Cvc.GetValueOrDefault().ToString();
             CardNumber = payObj.CardNumber;
             Amount = payObj.Amount.ToString();
             ExpMonth = payObj.ExpirationMonth.ToString();
             ExpYear = payObj.ExpirationYear.ToString();
         }
     });
 }