public Story GetStory(int id) { Story story = new Story(); HackerNews hacker = new HackerNews(); story = hacker.GetStory(id); return(story); }
private List <int> GetAllTopStories() { List <int> topStories = new List <int>(); HackerNews hacker = new HackerNews(); List <int> stories = hacker.GetTopStories().ToList(); int max = stories.Count > fetchMax ? fetchMax : stories.Count; for (int i = 0; i < max; i++) { topStories.Add(stories[i]); } return(topStories); }