1 package com.foxinmy.weixin4j.wxa.model.custommessage;
2
3 import com.alibaba.fastjson.annotation.JSONField;
4 import com.foxinmy.weixin4j.tuple.NotifyTuple;
5
6
7
8
9
10
11 public class Link implements NotifyTuple {
12
13 private static final long serialVersionUID = 2018052901L;
14
15 private String title;
16 private String description;
17 private String url;
18 private String thumbUrl;
19
20 public Link() {
21 }
22
23 public Link(
24 String title,
25 String description,
26 String url,
27 String thumbUrl
28 ) {
29 this.title = title;
30 this.description = description;
31 this.url = url;
32 this.thumbUrl = thumbUrl;
33 }
34
35 @Override
36 @JSONField(serialize = false)
37 public String getMessageType() {
38 return "link";
39 }
40
41 public String getTitle() {
42 return title;
43 }
44
45 public void setTitle(String title) {
46 this.title = title;
47 }
48
49 public String getDescription() {
50 return description;
51 }
52
53 public void setDescription(String description) {
54 this.description = description;
55 }
56
57 public String getUrl() {
58 return url;
59 }
60
61 public void setUrl(String url) {
62 this.url = url;
63 }
64
65 @JSONField(name = "thumb_url")
66 public String getThumbUrl() {
67 return thumbUrl;
68 }
69
70 public void setThumbUrl(String thumbUrl) {
71 this.thumbUrl = thumbUrl;
72 }
73
74 }