Exemplo n.º 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>();
 }
Exemplo n.º 2
0
 public ArtistLoginPageViewModel(INavigation navigationService)
 {
     _navigationService = navigationService;
     _storageService = new StorageService();
     LoginCommand = new DelegateCommand(Login);
 }
Exemplo n.º 3
0
        public ArtistProfilePageViewModel(INavigation navigationService)
        {
            _navigationService = navigationService;
            _storageService = new StorageService();
            _locationService = new LocationService();
            _pickerHelper = new PickerService();
            _uploadService = new UploadManager();

            SaveCommand = new DelegateCommand(Save);
            CVV = LoginHelper.UserInfo.CVV;
            CardHolderName = LoginHelper.UserInfo.CardName;
            CardNumber = LoginHelper.UserInfo.CardNumber;
            ExpMonth = LoginHelper.UserInfo.CardExpirationMonth;
            ExpYear = LoginHelper.UserInfo.CardExpirationYear;
            FullName = LoginHelper.UserInfo.Name;
            UserId = LoginHelper.UserInfo.GroupId;

            Task.Run(async () =>
            {
                var status = await _naneService.GetMyActivities();
                if (status == true)
                { // NoActivity
                    IsLive = true;
                }
            });

            this.PropertyChanged += ArtistProfilePageViewModel_PropertyChanged;
        }
Exemplo n.º 4
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();
         }
     });
 }