1 package com.foxinmy.weixin4j.tuple;
2
3 import java.io.Serializable;
4
5 import javax.xml.bind.annotation.XmlElement;
6
7 import com.alibaba.fastjson.annotation.JSONCreator;
8 import com.alibaba.fastjson.annotation.JSONField;
9
10
11
12
13
14
15
16
17
18
19 public class Article implements Serializable {
20
21 private static final long serialVersionUID = -1231352700301456395L;
22
23
24
25
26 @XmlElement(name = "Title")
27 private String title;
28
29
30
31 @JSONField(name = "description")
32 @XmlElement(name = "Description")
33 private String desc;
34
35
36
37 @JSONField(name = "picurl")
38 @XmlElement(name = "PicUrl")
39 private String picUrl;
40
41
42
43 @XmlElement(name = "Url")
44 private String url;
45
46
47
48
49
50
51
52
53
54
55
56
57 @JSONCreator
58 public Article(@JSONField(name = "title") String title,
59 @JSONField(name = "desc") String desc,
60 @JSONField(name = "picUrl") String picUrl,
61 @JSONField(name = "url") String url) {
62 this.title = title;
63 this.desc = desc;
64 this.picUrl = picUrl;
65 this.url = url;
66 }
67
68 public String getTitle() {
69 return title;
70 }
71
72 public String getDesc() {
73 return desc;
74 }
75
76 public String getPicUrl() {
77 return picUrl;
78 }
79
80 public String getUrl() {
81 return url;
82 }
83
84 @Override
85 public String toString() {
86 return "Article [title=" + title + ", desc=" + desc + ", picUrl="
87 + picUrl + ", url=" + url + "]";
88 }
89 }