Пример #1
0
        private async Task PopulateAsync()
        {
            var news = await _client.GetNewsAsync();

            _items.AddRange(news);
            //TODO: Need to check for null values and handle non 200 codes
        }
Пример #2
0
        private async Task PopulateAsync()
        {
            var news = await _client.GetNewsAsync();

            foreach (FeedEntry item in news)
            {
                _items.Add(item);
            }
        }