Comment.java 1.7 KB
Newer Older
U
u014427391 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
package com.newsService.po;

/**
 *新闻评论Model
 */
public class Comment
{
	//评论的ID号
	private int cid;
	//新闻的ID号
	private int nid;
	//发布时间
	private String ptime;
	//评论人地区
	private String region;
	//评论内容
	private String content;
	//支持人数
	private int supportCount;
	//反对人数
	private int opposeCount;
	private boolean deleted;

	public Comment()
	{
		super();
	}

	public Comment(int cid, int nid, String ptime, String region, String content, int supportCount, int opposeCount, boolean deleted)
	{
		super();
		this.cid = cid;
		this.nid = nid;
		this.ptime = ptime;
		this.region = region;
		this.content = content;
		this.supportCount = supportCount;
		this.opposeCount = opposeCount;
		this.deleted = deleted;
	}

	public int getCid()
	{
		return cid;
	}

	public void setCid(int cid)
	{
		this.cid = cid;
	}

	public int getNid()
	{
		return nid;
	}

	public void setNid(int nid)
	{
		this.nid = nid;
	}

	public String getPtime()
	{
		return ptime;
	}

	public void setPtime(String ptime)
	{
		this.ptime = ptime;
	}

	public String getRegion()
	{
		return region;
	}

	public void setRegion(String region)
	{
		this.region = region;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public int getSupportCount()
	{
		return supportCount;
	}

	public void setSupportCount(int supportCount)
	{
		this.supportCount = supportCount;
	}

	public int getOpposeCount()
	{
		return opposeCount;
	}

	public void setOpposeCount(int opposeCount)
	{
		this.opposeCount = opposeCount;
	}

	public boolean isDeleted()
	{
		return deleted;
	}

	public void setDeleted(boolean deleted)
	{
		this.deleted = deleted;
	}
}