View Javadoc
1   package com.foxinmy.weixin4j.wxa.model.template;
2   
3   import java.io.Serializable;
4   import java.util.List;
5   
6   import com.alibaba.fastjson.annotation.JSONField;
7   
8   /**
9    * 模板消息的模板。
10   *
11   * @since 1.8
12   */
13  public class Template implements Serializable {
14  
15  	private static final long serialVersionUID = 2018052601L;
16  
17  	private String id;
18  	private String title;
19  	private List<Keyword> keywords;
20  	private String content;
21  	private String example;
22  
23  	public Template() {
24  	}
25  
26  	public Template(String id, String title, List<Keyword> keywords) {
27  		this.id = id;
28  		this.title = title;
29  		this.keywords = keywords;
30  	}
31  
32  	public String getId() {
33  		return id;
34  	}
35  
36  	@JSONField(name = "id", alternateNames = { "template_id" })
37  	public void setId(String id) {
38  		this.id = id;
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 List<Keyword> getKeywords() {
50  		return keywords;
51  	}
52  
53  	public void setKeywords(List<Keyword> keywords) {
54  		this.keywords = keywords;
55  	}
56  
57  	public String getContent() {
58  		return content;
59  	}
60  
61  	public void setContent(String content) {
62  		this.content = content;
63  	}
64  
65  	public String getExample() {
66  		return example;
67  	}
68  
69  	public void setExample(String example) {
70  		this.example = example;
71  	}
72  
73  }