package ar.edu.unc.famaf.redditreader.model;


import java.util.Date;

public class PostModel {
    private String mTitle;
    private String mAuthor;
    private Date mDate;
    private int mCommentNumber;
    private String mThumbnail; // This is the image URL
    private String mSubreddit;

    public PostModel() {
    }

    public PostModel(String title, String author, Date date, int commentNumber, String thumbnail, String subreddit) {
        mTitle = title;
        mAuthor = author;
        mDate = date;
        mCommentNumber = commentNumber;
        mThumbnail = thumbnail;
        mSubreddit = subreddit;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        mTitle = title;
    }

    public String getAuthor() {
        return mAuthor;
    }

    public void setAuthor(String author) {
        mAuthor = author;
    }

    public Date getDate() {
        return mDate;
    }

    public void setDate(Date date) {
        mDate = date;
    }

    public int getCommentNumber() {
        return mCommentNumber;
    }

    public void setCommentNumber(int commentNumber) {
        mCommentNumber = commentNumber;
    }

    public String getThumbnail() {
        return mThumbnail;
    }

    public void setThumbnail(String thumbnail) {
        mThumbnail = thumbnail;
    }

    public String getSubreddit() {
        return mSubreddit;
    }

    public void setSubreddit(String subreddit) {
        mSubreddit = subreddit;
    }
}

@@ -286,16 +286,40 @@
 breddit;
+%0A    private String mId;
 %0A%0A    pu
@@ -450,32 +450,43 @@
 String subreddit
+, String id
 ) %7B%0A        mTit
@@ -613,24 +613,24 @@
  thumbnail;%0A
-
         mSub
@@ -641,32 +641,50 @@
 it = subreddit;%0A
+        mId = id;%0A
     %7D%0A%0A    publi
@@ -1556,11 +1556,126 @@
 t;%0A    %7D
+%0A%0A    public String getId() %7B%0A        return mId;%0A    %7D%0A%0A    public void setId(String id) %7B%0A        mId = id;%0A    %7D
 %0A%7D%0A

Add a new attribute to PostModel: id