Example #1
0
        async void UpdateStories(string text)
        {
            if (_updateStatus.ContainsKey(1) && _updateStatus[1])
            {
                return;
            }

            _updateStatus[1] = true;
            var stories = await DataRequester.SearchStories(text);

            if (stories != null && stories.Stories != null)
            {
                var list = stories.Stories.ToList();
                list.ForEach(o => o.Adjust());
                SearchStories = list;
            }
        }