// Path: app/src/main/java/io/dwak/holohackernews/app/network/models/NodeHNAPIStory.java
// @JsonObject
// public class NodeHNAPIStory {
//     @JsonField(name = "id") public Long id;
//     @JsonField(name = "title") public String title;
//     @JsonField(name = "url") public String url;
//     @JsonField(name = "domain") public String domain;
//     @JsonField(name = "points") public int points;
//     @JsonField(name = "user") public String user;
//     @JsonField(name = "time_ago") public String timeAgo;
//     @JsonField(name = "comments_count") public int commentsCount;
//     @JsonField(name = "type") public String type;
// 
//     public NodeHNAPIStory() {
//     }
// 
//     private NodeHNAPIStory(Long id, String title, String url, String domain, int points, String user, String timeAgo, int commentsCount, String type) {
//         this.id = id;
//         this.title = title;
//         this.url = url;
//         this.domain = domain;
//         this.points = points;
//         this.user = user;
//         this.timeAgo = timeAgo;
//         this.commentsCount = commentsCount;
//         this.type = type;
//     }
// 
// 
//     public static NodeHNAPIStory fromStory(Story story) {
//         return new NodeHNAPIStory(story.getStoryId(),
//                                   story.getTitle(),
//                                   story.getUrl(),
//                                   story.getDomain(),
//                                   story.getPoints(),
//                                   story.getSubmitter(),
//                                   story.getPublishedTime(),
//                                   story.getNumComments(),
//                                   story.getType());
//     }
// }
// 
// Path: app/src/main/java/io/dwak/holohackernews/app/network/models/NodeHNAPIStoryDetail.java
// @JsonObject
// public class NodeHNAPIStoryDetail {
//     @JsonField(name = "id") public Long id;
//     @JsonField(name = "title") public String title;
//     @JsonField(name = "url") public String url;
//     @JsonField(name = "domain") public String domain;
//     @JsonField(name = "points") public Integer points;
//     @JsonField(name = "user") public String user;
//     @JsonField(name = "time_ago") public String timeAgo;
//     @JsonField(name = "comments_count") public Integer commentsCount;
//     @JsonField(name = "content") public String content;
//     @JsonField(name = "poll") public Object poll;
//     @JsonField(name = "link") public String link;
//     @JsonField(name = "comments") public List<NodeHNAPIComment> commentList;
//     @JsonField(name = "more_comments_id") public Long moreCommentsId;
//     @JsonField(name = "type") public String type;
// 
// }


import java.util.List;
import io.dwak.holohackernews.app.network.models.NodeHNAPIStory;
import io.dwak.holohackernews.app.network.models.NodeHNAPIStoryDetail;
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Path;
import rx.Observable;
package io.dwak.holohackernews.app.network;



/**
 * Retrofit service to interface with hacker news api
 * Created by vishnu on 4/21/14.
 */
public interface HackerNewsService {
    @GET("/news")
// Path: app/src/main/java/io/dwak/holohackernews/app/network/models/NodeHNAPIStory.java
// @JsonObject
// public class NodeHNAPIStory {
//     @JsonField(name = "id") public Long id;
//     @JsonField(name = "title") public String title;
//     @JsonField(name = "url") public String url;
//     @JsonField(name = "domain") public String domain;
//     @JsonField(name = "points") public int points;
//     @JsonField(name = "user") public String user;
//     @JsonField(name = "time_ago") public String timeAgo;
//     @JsonField(name = "comments_count") public int commentsCount;
//     @JsonField(name = "type") public String type;
// 
//     public NodeHNAPIStory() {
//     }
// 
//     private NodeHNAPIStory(Long id, String title, String url, String domain, int points, String user, String timeAgo, int commentsCount, String type) {
//         this.id = id;
//         this.title = title;
//         this.url = url;
//         this.domain = domain;
//         this.points = points;
//         this.user = user;
//         this.timeAgo = timeAgo;
//         this.commentsCount = commentsCount;
//         this.type = type;
//     }
// 
// 
//     public static NodeHNAPIStory fromStory(Story story) {
//         return new NodeHNAPIStory(story.getStoryId(),
//                                   story.getTitle(),
//                                   story.getUrl(),
//                                   story.getDomain(),
//                                   story.getPoints(),
//                                   story.getSubmitter(),
//                                   story.getPublishedTime(),
//                                   story.getNumComments(),
//                                   story.getType());
//     }
// }
// 
// Path: app/src/main/java/io/dwak/holohackernews/app/network/models/NodeHNAPIStoryDetail.java
// @JsonObject
// public class NodeHNAPIStoryDetail {
//     @JsonField(name = "id") public Long id;
//     @JsonField(name = "title") public String title;
//     @JsonField(name = "url") public String url;
//     @JsonField(name = "domain") public String domain;
//     @JsonField(name = "points") public Integer points;
//     @JsonField(name = "user") public String user;
//     @JsonField(name = "time_ago") public String timeAgo;
//     @JsonField(name = "comments_count") public Integer commentsCount;
//     @JsonField(name = "content") public String content;
//     @JsonField(name = "poll") public Object poll;
//     @JsonField(name = "link") public String link;
//     @JsonField(name = "comments") public List<NodeHNAPIComment> commentList;
//     @JsonField(name = "more_comments_id") public Long moreCommentsId;
//     @JsonField(name = "type") public String type;
// 
// }


// Path: app/src/main/java/io/dwak/holohackernews/app/network/HackerNewsService.java
import java.util.List;
import io.dwak.holohackernews.app.network.models.NodeHNAPIStory;
import io.dwak.holohackernews.app.network.models.NodeHNAPIStoryDetail;
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Path;
import rx.Observable;

package io.dwak.holohackernews.app.network;



/**
 * Retrofit service to interface with hacker news api
 * Created by vishnu on 4/21/14.
 */
public interface HackerNewsService {
    @GET("/news")
    void getTopStories(Callback<List<NodeHNAPIStory>> callback);