private async Task TestModels() { List <TrelloBoard> list = new List <TrelloBoard>(); list = await TrelloRepository.GetTrelloBoards(); foreach (TrelloBoard item in list) { Debug.WriteLine(item.Name); List <TrelloList> l = new List <TrelloList>(); l = await TrelloRepository.GetTrelloListsAsync(item.BoardId); foreach (TrelloList tl in l) { TrelloCard card = new TrelloCard() { Name = "Testerdetesterdetest" }; await TrelloRepository.AddCardAsync(tl.ListId, card); Debug.WriteLine($"Listname: {tl.Name}"); List <TrelloCard> ltc = new List <TrelloCard>(); ltc = await TrelloRepository.GetTrelloCardsAsync(tl.ListId); foreach (TrelloCard c in ltc) { Debug.WriteLine($"Cardname: {c.Name}"); } } } TrelloBoard b = list.Where(x => x.IsFavorite == true).ToList <TrelloBoard>().First(); if (b != null) { Debug.WriteLine(b.Name); } }
private async Task loadBordAsync() { lvwTrelloLists.ItemsSource = await TrelloRepository.GetTrelloListsAsync(Board.BoardId); //lvwBoards.ItemsSource = await TrelloRepository.GetTrelloBoards(); }