View Javadoc
1   package com.foxinmy.weixin4j.mp.model;
2   
3   import java.io.Serializable;
4   import java.util.Date;
5   
6   import com.alibaba.fastjson.annotation.JSONField;
7   
8   /**
9    * 
10   * @className Comment
11   * @author jinyu(foxinmy@gmail.com)
12   * @date 2017年5月19日
13   * @since JDK 1.6
14   * @see
15   */
16  public class Comment implements Serializable {
17  	private static final long serialVersionUID = 1L;
18  	private String content;// 评论内容
19  	@JSONField(name = "create_time")
20  	private long createTime;// 评论时间
21  
22  	public String getContent() {
23  		return content;
24  	}
25  
26  	public void setContent(String content) {
27  		this.content = content;
28  	}
29  
30  	public long getCreateTime() {
31  		return createTime;
32  	}
33  
34  	@JSONField(serialize = false)
35  	public Date getFormatCreateTime() {
36  		return new Date(createTime * 1000l);
37  	}
38  
39  	public void setCreateTime(long createTime) {
40  		this.createTime = createTime;
41  	}
42  
43  	@Override
44  	public String toString() {
45  		return "content=" + content + ", createTime=" + createTime;
46  	}
47  }