Beispiel #1
0
        public List <Transaction> TransactionsCurrentWallet()
        {
            foreach (var trService in _trServices.Where(trService => trService.Wallet.Id == CurrentWallet.Id))
            {
                return(trService.Transactions);
            }
            var trSer = new TrService(CurrentWallet);

            _trServices.Add(trSer);
            return(trSer.Transactions);
        }
Beispiel #2
0
        public async Task GetTransactionsCurrentWalletAsync()
        {
            foreach (var trService in _trServices.Where(trService => trService.Wallet.Id == CurrentWallet.Id))
            {
                if (!trService.TransactionsLoaded)
                {
                    await trService.GetTransactionsAsync();

                    trService.TransactionsLoaded = true;
                }
                return;
            }
            var trSer = new TrService(CurrentWallet);

            _trServices.Add(trSer);
            await trSer.GetTransactionsAsync();

            trSer.TransactionsLoaded = true;
        }