package com.iwhys.cnode.entity;
import java.util.Date;
/**
* 主题类
* Created by devil on 15/4/1.
*/
public class Topic extends Base {
private String id;
private String tab;
private String title;
private String content;
private Author author;
private String author_id;
private boolean good;
private boolean top;
private int reply_count;
private int visit_count;
private Date lastReplyAt;
private Date createAt;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTab() {
return tab;
}
public void setTab(String tab) {
this.tab = tab;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Author getAuthor() {
return author;
}
public void setAuthor(Author author) {
this.author = author;
}
public boolean isGood() {
return good;
}
public void setGood(boolean good) {
this.good = good;
}
public boolean isTop() {
return top;
}
public void setTop(boolean top) {
this.top = top;
}
public int getReply_count() {
return reply_count;
}
public void setReply_count(int reply_count) {
this.reply_count = reply_count;
}
public int getVisit_count() {
return visit_count;
}
public void setVisit_count(int visit_count) {
this.visit_count = visit_count;
}
public Date getLastReplyAt() {
return lastReplyAt;
}
public void setLastReplyAt(Date lastReplyAt) {
this.lastReplyAt = lastReplyAt;
}
public Date getCreateAt() {
return createAt;
}
public void setCreateAt(Date createAt) {
this.createAt = createAt;
}
public String getAuthor_id() {
return author_id;
}
public void setAuthor_id(String author_id) {
this.author_id = author_id;
}
@Override
public String toString() {
return "Topic{" +
"id='" + id + '\'' +
", tab='" + tab + '\'' +
", title='" + title + '\'' +
", content='" + content + '\'' +
", author=" + author +
", author_id='" + author_id + '\'' +
", good=" + good +
", top=" + top +
", reply_count=" + reply_count +
", visit_count=" + visit_count +
", lastReplyAt=" + lastReplyAt +
", createAt=" + createAt +
'}';
}
}