1 package com.foxinmy.weixin4j.mp.model;
2
3 import java.io.Serializable;
4
5 import com.alibaba.fastjson.annotation.JSONCreator;
6 import com.alibaba.fastjson.annotation.JSONField;
7
8
9
10
11
12
13
14
15
16
17 public class Tag implements Serializable {
18
19 private static final long serialVersionUID = 5204620476267654921L;
20
21
22
23
24 private int id;
25
26
27
28 private String name;
29
30
31
32 private int count;
33
34 public Tag(@JSONField(name = "id") int id,
35 @JSONField(name = "name") String name) {
36 this(id, name, 0);
37 }
38
39 @JSONCreator
40 public Tag(@JSONField(name = "id") int id,
41 @JSONField(name = "name") String name,
42 @JSONField(name = "count") int count) {
43 this.id = id;
44 this.name = name;
45 this.count = count;
46 }
47
48 public int getId() {
49 return id;
50 }
51
52 public String getName() {
53 return name;
54 }
55
56 public int getCount() {
57 return count;
58 }
59
60 @Override
61 public String toString() {
62 return "Tag [id=" + id + ", name=" + name + ", count=" + count + "]";
63 }
64 }