1 package com.foxinmy.weixin4j.mp.model;
2
3 import java.io.Serializable;
4
5 import com.alibaba.fastjson.annotation.JSONField;
6 import com.foxinmy.weixin4j.mp.type.IndustryType;
7
8
9
10
11
12
13
14
15
16
17 public class TemplateMessageInfo implements Serializable {
18
19 private static final long serialVersionUID = 2130414666704670905L;
20
21
22
23
24 @JSONField(name = "template_id")
25 private String templateId;
26
27
28
29 private String title;
30
31
32
33 @JSONField(name = "primary_industry")
34 private String primaryIndustry;
35
36
37
38 @JSONField(name = "deputy_industry")
39 private String secondaryIndustry;
40
41
42
43 private String content;
44
45
46
47 private String example;
48
49 public String getTemplateId() {
50 return templateId;
51 }
52
53 public void setTemplateId(String templateId) {
54 this.templateId = templateId;
55 }
56
57 public String getTitle() {
58 return title;
59 }
60
61 public void setTitle(String title) {
62 this.title = title;
63 }
64
65 public String getPrimaryIndustry() {
66 return primaryIndustry;
67 }
68
69 public void setPrimaryIndustry(String primaryIndustry) {
70 this.primaryIndustry = primaryIndustry;
71 }
72
73 public String getSecondaryIndustry() {
74 return secondaryIndustry;
75 }
76
77 public void setSecondaryIndustry(String secondaryIndustry) {
78 this.secondaryIndustry = secondaryIndustry;
79 }
80
81 public String getContent() {
82 return content;
83 }
84
85 public void setContent(String content) {
86 this.content = content;
87 }
88
89 public String getExample() {
90 return example;
91 }
92
93 public void setExample(String example) {
94 this.example = example;
95 }
96
97 public IndustryType getIndustryType() {
98 return IndustryType.getIndustry(primaryIndustry, secondaryIndustry);
99 }
100
101 @Override
102 public String toString() {
103 return "TemplateMessageInfo [templateId=" + templateId + ", title="
104 + title + ", primaryIndustry=" + primaryIndustry
105 + ", secondaryIndustry=" + secondaryIndustry + ", content="
106 + content + ", example=" + example + "]";
107 }
108 }