Exemplo n.º 1
0
        private async Task GetShelfBooks()
        {
            var result = await _gr.GetShelfBooks();

            foreach (var item in result.Review)
            {
                var itemVM = new ReviewViewModel(item);
                if (reviews.Any(r => r.Id == item.Id))
                {
                    continue;
                }

                reviews.Add(itemVM);
            }

            NotifyPropertyChanged("Reviews");
            NotifyPropertyChanged("FrontPageBooks");
            NotifyPropertyChanged("CurrentlyReading");
        }
Exemplo n.º 2
0
        private async Task GetShelfBooks()
        {
            var result = await _gr.GetShelfBooks();

            foreach (var item in result.Review)
            {
                var itemVM = new ReviewViewModel(item);
                if (reviews.Any(r => r.Id == item.Id))
                    continue;

                reviews.Add(itemVM);
            }

            NotifyPropertyChanged("Reviews");
            NotifyPropertyChanged("FrontPageBooks");
            NotifyPropertyChanged("CurrentlyReading");
        }