/*
 * MIT License
 *
 * Copyright (c) 2016 Kartik Sharma
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.crazyhitty.chdev.ks.predator.models;

/**
 * Author:      Kartik Sharma
 * Email Id:    cr42yh17m4n@gmail.com
 * Created:     1/13/2017 9:01 AM
 * Description: Useful for sending post details.
 */

public class PostDetails {
    private String title;
    private String description;
    private String day;
    private String date;
    private String backdropUrl;
    private String redirectUrl;
    private String tagline;
    private String discussionUrl;
    private String category;
    private int voteCount;

    public PostDetails() {
    }

    public String getTitle() {
        return title;
    }

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

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getBackdropUrl() {
        return backdropUrl;
    }

    public void setBackdropUrl(String backdropUrl) {
        this.backdropUrl = backdropUrl;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public String getTagline() {
        return tagline;
    }

    public void setTagline(String tagline) {
        this.tagline = tagline;
    }

    public String getDiscussionUrl() {
        return discussionUrl;
    }

    public void setDiscussionUrl(String discussionUrl) {
        this.discussionUrl = discussionUrl;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getVoteCount() {
        return voteCount;
    }

    public void setVoteCount(int voteCount) {
        this.voteCount = voteCount;
    }

    @Override
    public String toString() {
        return "title: " + title +
                ", description: " + description +
                ", day: " + day +
                ", date: " + date +
                ", backdropUrl: " + backdropUrl +
                ", redirectUrl: " + redirectUrl +
                ", tagline: " + tagline +
                ", discussionUrl: " + discussionUrl +
                ", category: " + category +
                ", voteCount: " + voteCount;
    }
}

@@ -1596,24 +1596,52 @@
 cussionUrl;%0A
+    private int categoryId;%0A
     private 
@@ -2949,32 +2949,192 @@
 sionUrl;%0A    %7D%0A%0A
+    public int getCategoryId() %7B%0A        return categoryId;%0A    %7D%0A%0A    public void setCategoryId(int categoryId) %7B%0A        this.categoryId = categoryId;%0A    %7D%0A%0A
     public Strin
@@ -3817,24 +3817,72 @@
 ussionUrl +%0A
+                %22, categoryId: %22 + categoryId +%0A
             

Add categoryId in PostDetails