Ejemplo n.º 1
0
        public static async Task <List <FeedViewModel> > GetFeedsAsync()
        {
            var feeds = (await SQLiteService.QueryAllFeeds()).Select(feedinfo => new FeedViewModel(feedinfo)).ToList();

            foreach (var feedviewmodel in feeds)
            {
                await feedviewmodel.LoadArticlesFromDb();

                // 如果需要加载就刷新一次,就在这里加多一个函数
            }
            return(feeds);
        }