// 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());
//     }
// }


import android.os.Parcel;
import android.os.Parcelable;
import com.orm.SugarRecord;
import io.dwak.holohackernews.app.network.models.NodeHNAPIStory;
package io.dwak.holohackernews.app.models;




public class Story extends SugarRecord<Story> implements Parcelable {
    private Long mStoryId;
    private String mTitle;
    private String mUrl;
    private String mDomain;
    private int mPoints;
    private String mSubmitter;
    private String mPublishedTime;
    private int mNumComments;
    private String mType;
    private boolean isSaved;
    private boolean mIsRead;

    public Story() {
    }

    private Story(Long storyId, String title, String url, String domain, int points, String submitter, String publishedTime, int numComments, String type) {
        mStoryId = storyId;
        mTitle = title;
        mUrl = url;
        mDomain = domain;
        mPoints = points;
        mSubmitter = submitter;
        mPublishedTime = publishedTime;
        mNumComments = numComments;
        mType = type;
    }

// 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/models/Story.java
import android.os.Parcel;
import android.os.Parcelable;
import com.orm.SugarRecord;
import io.dwak.holohackernews.app.network.models.NodeHNAPIStory;

package io.dwak.holohackernews.app.models;




public class Story extends SugarRecord<Story> implements Parcelable {
    private Long mStoryId;
    private String mTitle;
    private String mUrl;
    private String mDomain;
    private int mPoints;
    private String mSubmitter;
    private String mPublishedTime;
    private int mNumComments;
    private String mType;
    private boolean isSaved;
    private boolean mIsRead;

    public Story() {
    }

    private Story(Long storyId, String title, String url, String domain, int points, String submitter, String publishedTime, int numComments, String type) {
        mStoryId = storyId;
        mTitle = title;
        mUrl = url;
        mDomain = domain;
        mPoints = points;
        mSubmitter = submitter;
        mPublishedTime = publishedTime;
        mNumComments = numComments;
        mType = type;
    }

    public static Story fromNodeHNAPIStory(NodeHNAPIStory nodeHNAPIStory) {