View Javadoc
1   package com.foxinmy.weixin4j.mp.datacube;
2   
3   import java.io.Serializable;
4   import java.util.Date;
5   import java.util.List;
6   
7   import com.alibaba.fastjson.annotation.JSONField;
8   
9   /**
10   * 数据统计:图文群发总数据
11   * 
12   * @className ArticleTotal
13   * @author jinyu(foxinmy@gmail.com)
14   * @date 2015年1月30日
15   * @since JDK 1.6
16   * @see
17   */
18  public class ArticleTotal implements Serializable {
19  	private static final long serialVersionUID = -6820948857241500950L;
20  
21  	/**
22  	 * 数据的日期
23  	 */
24  	@JSONField(name = "ref_date")
25  	private Date refDate;
26  	/**
27  	 * 这里的msgid实际上是由msgid(图文消息id)和index(消息次序索引)组成, 例如12003_3,
28  	 * 其中12003是msgid,即一次群发的id消息的; 3为index,假设该次群发的图文消息共5个文章(因为可能为多图文), 3表示5个中的第3个
29  	 */
30  	@JSONField(name = "msgid")
31  	private String msgId;
32  	/**
33  	 * 图文消息的标题
34  	 */
35  	private String title;
36  	/**
37  	 * 详细信息
38  	 */
39  	private List<ArticleDatacube2> details;
40  
41  	public Date getRefDate() {
42  		return refDate;
43  	}
44  
45  	public void setRefDate(Date refDate) {
46  		this.refDate = refDate;
47  	}
48  
49  	public String getMsgId() {
50  		return msgId;
51  	}
52  
53  	public void setMsgId(String msgId) {
54  		this.msgId = msgId;
55  	}
56  
57  	public String getTitle() {
58  		return title;
59  	}
60  
61  	public void setTitle(String title) {
62  		this.title = title;
63  	}
64  
65  	public List<ArticleDatacube2> getDetails() {
66  		return details;
67  	}
68  
69  	public void setDetails(List<ArticleDatacube2> details) {
70  		this.details = details;
71  	}
72  
73  	@Override
74  	public String toString() {
75  		return "ArticleTotal [refDate=" + refDate + ", msgId=" + msgId
76  				+ ", title=" + title + ", details=" + details + "]";
77  	}
78  }