View Javadoc
1   package com.foxinmy.weixin4j.tuple;
2   
3   /**
4    * 文本卡片对象
5    * <p>
6    * <font color="red">企业微信的「通知消息」</font>
7    * </p>
8    * 
9    * @className Text
10   * @author caoyiheng(ebir@qq.com)
11   * @date 2018年10月22日
12   * @since JDK 1.8
13   * @see
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  }