mirrored_repositories/HackerNewsApp/lib


class UrlService {

  static String urlForStory(int storyId) {
    return "https://hacker-news.firebaseio.com/v0/item/$storyId.json?print=pretty";
  }

  static String urlForTopStories() {
    return "https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty";
  }

  static String urlForNewStories() {
    return "https://hacker-news.firebaseio.com/v0/newstories.json?print=pretty";
  }

  static String urlForBestStories() {
    return "https://hacker-news.firebaseio.com/v0/beststories.json";
  }

  static String urlForCommentById(int commentId) {
    return "https://hacker-news.firebaseio.com/v0/item/$commentId.json?print=pretty";
  }


}