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