예제 #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)));
            }
        }