示例#1
0
 private protected override async Task GetDataAsync(int id)
 {
     PaymentCard card = await PaymentCardProcessor.GetCard(ApiHelper.ApiClient, id);
     if (card != null)
     {
         var decryptedCard = (PaymentCard)DecryptItem(card);
         PaymentCard = decryptedCard;
         _tempPaymentCard = (PaymentCard)decryptedCard.Clone();//store a temp card for future verifications
     }
     else
         await PageService.PushPopupAsync(new ErrorView(ErrorMsg.CouldNotGetItem(ItemType)));
 }
示例#2
0
        private protected override async Task GetDataAsync(int id)
        {
            Note note = await NoteProcessor.GetNote(ApiHelper.ApiClient, id);

            if (note != null)
            {
                var decryptedNote = (Note)DecryptItem(note);
                Note      = decryptedNote;
                _tempNote = (Note)decryptedNote.Clone();//store a temp password for future verifications
            }
            else
            {
                await PageService.PushPopupAsync(new ErrorView(ErrorMsg.CouldNotGetItem(ItemType)));
            }
        }
示例#3
0
        private protected async override Task GetDataAsync(int id)
        {
            Password password = await PasswordProcessor.GetPassword(ApiHelper.ApiClient, id);

            if (password != null)
            {
                var decryptedPass = (Password)DecryptItem(password);
                Password      = decryptedPass;
                _tempPassword = (Password)decryptedPass.Clone();//store a temp password for future verifications
            }
            else
            {
                await PageService.PushPopupAsync(new ErrorView(ErrorMsg.CouldNotGetItem(ItemType)));
            }
        }
示例#4
0
        private protected override async Task GetDataAsync(int id)
        {
            Wifi wifi = await WifiProcessor.GetWifi(ApiHelper.ApiClient, id);

            if (wifi != null)
            {
                var decryptedWifi = (Wifi)DecryptItem(wifi);
                Wifi      = decryptedWifi;
                _tempWifi = (Wifi)decryptedWifi.Clone();//store a temp wifi for later verifications
            }
            else
            {
                await PageService.PushPopupAsync(new ErrorView(ErrorMsg.CouldNotGetItem(ItemType)));
            }
        }