package com.jamesdube.laravelnewsapp.models;

import android.widget.ImageView;
import android.widget.TextView;

import com.android.volley.toolbox.NetworkImageView;

/**
 * Created by rick on 1/6/17.
 */

public class Post {

    //Post Title
    private String title;

    //Short Description about the post
    private String subTitle;

    //Post Cover Image
    private String coverImage;

    /**
     * Post constructor
     * @param title Post Title
     * @param subTitle Short Description about the post
     * @param coverImage Post Cover Image
     */
    public Post(String title, String subTitle, String coverImage) {
        this.title = title;
        this.subTitle = subTitle;
        this.coverImage = coverImage;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }
}

@@ -156,16 +156,86 @@
 ageView;
+%0Aimport com.google.gson.Gson;%0Aimport com.jamesdube.laravelnewsapp.App;
 %0A%0A/**%0A *
@@ -452,24 +452,128 @@
 overImage;%0A%0A
+    //The URL link%0A    private String link;%0A%0A    //The Author of the Post%0A    private String creator;%0A%0A%0A
     /**%0A    
@@ -1307,32 +1307,32 @@
 g coverImage) %7B%0A
-
         this.cov
@@ -1358,11 +1358,473 @@
 e;%0A    %7D
+%0A%0A    public String getLink() %7B%0A        return link;%0A    %7D%0A%0A    public void setLink(String link) %7B%0A        this.link = link;%0A    %7D%0A%0A    public String getCreator() %7B%0A        return creator;%0A    %7D%0A%0A    public void setCreator(String creator) %7B%0A        this.creator = creator;%0A    %7D%0A%0A    public String toJson() %7B%0A        return App.Gson().toJson(this);%0A    %7D%0A%0A    public static Post fromJson(String json) %7B%0A        return App.Gson().fromJson(json, Post.class);%0A    %7D
 %0A%7D%0A

add attributes