View Javadoc
1   package com.foxinmy.weixin4j.model.media;
2   
3   import java.io.Serializable;
4   
5   import com.alibaba.fastjson.annotation.JSONField;
6   
7   /**
8    * 媒体素材总数
9    * 
10   * @className MediaCounter
11   * @author jinyu(foxinmy@gmail.com)
12   * @date 2015年3月22日
13   * @since JDK 1.6
14   * @see
15   */
16  public class MediaCounter implements Serializable {
17  
18  	private static final long serialVersionUID = -1752502821323552783L;
19  
20  	/**
21  	 * 应用素材总数目(企业号独有)
22  	 */
23  	@JSONField(name = "total_count")
24  	private int totalCount;
25  	/**
26  	 * 文件素材总数目(企业号独有)
27  	 */
28  	@JSONField(name = "file_count")
29  	private int fileCount;
30  	/**
31  	 * 语音总数量
32  	 */
33  	@JSONField(name = "voice_count")
34  	private long voiceCount;
35  	/**
36  	 * 视频总数量
37  	 */
38  	@JSONField(name = "video_count")
39  	private long videoCount;
40  	/**
41  	 * 图片总数量
42  	 */
43  	@JSONField(name = "image_count")
44  	private long imageCount;
45  	/**
46  	 * 图文总数量
47  	 */
48  	@JSONField(name = "news_count")
49  	private long newsCount;
50  
51  	public long getVoiceCount() {
52  		return voiceCount;
53  	}
54  
55  	public void setVoiceCount(long voiceCount) {
56  		this.voiceCount = voiceCount;
57  	}
58  
59  	public long getVideoCount() {
60  		return videoCount;
61  	}
62  
63  	public void setVideoCount(long videoCount) {
64  		this.videoCount = videoCount;
65  	}
66  
67  	public long getImageCount() {
68  		return imageCount;
69  	}
70  
71  	public void setImageCount(long imageCount) {
72  		this.imageCount = imageCount;
73  	}
74  
75  	public long getNewsCount() {
76  		return newsCount;
77  	}
78  
79  	public void setNewsCount(long newsCount) {
80  		this.newsCount = newsCount;
81  	}
82  
83  	public int getTotalCount() {
84  		return totalCount;
85  	}
86  
87  	public void setTotalCount(int totalCount) {
88  		this.totalCount = totalCount;
89  	}
90  
91  	public int getFileCount() {
92  		return fileCount;
93  	}
94  
95  	public void setFileCount(int fileCount) {
96  		this.fileCount = fileCount;
97  	}
98  
99  	@Override
100 	public String toString() {
101 		return "MediaCounter [totalCount=" + totalCount + ", fileCount="
102 				+ fileCount + ", voiceCount=" + voiceCount + ", videoCount="
103 				+ videoCount + ", imageCount=" + imageCount + ", newsCount="
104 				+ newsCount + "]";
105 	}
106 }