1 package com.zone.weixin4j.message;
2
3 import com.zone.weixin4j.request.WeixinMessage;
4 import com.zone.weixin4j.type.MessageType;
5
6 import javax.xml.bind.annotation.XmlElement;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 public class LinkMessage extends WeixinMessage {
23
24 private static final long serialVersionUID = 754952745115497030L;
25
26 public LinkMessage() {
27 super(MessageType.link.name());
28 }
29
30
31
32
33 @XmlElement(name = "Title")
34 private String title;
35
36
37
38 @XmlElement(name = "Description")
39 private String description;
40
41
42
43 @XmlElement(name = "Url")
44 private String url;
45
46 public String getTitle() {
47 return title;
48 }
49
50 public String getDescription() {
51 return description;
52 }
53
54 public String getUrl() {
55 return url;
56 }
57
58 @Override
59 public String toString() {
60 return "LinkMessage [title=" + title + ", description=" + description + ", url=" + url + ", " + super.toString()
61 + "]";
62 }
63 }