1 package com.foxinmy.weixin4j.mp.model;
2
3 import com.alibaba.fastjson.JSONArray;
4 import com.alibaba.fastjson.JSONObject;
5 import com.foxinmy.weixin4j.http.weixin.ApiResult;
6
7
8
9
10
11
12
13
14
15
16
17 public class SemResult extends ApiResult {
18
19 private static final long serialVersionUID = 9051214458161068387L;
20
21
22
23 private String query;
24
25
26
27 private String type;
28
29
30
31 private JSONObject semantic;
32
33
34
35 private JSONArray result;
36
37
38
39 private String answer;
40
41
42
43 private String text;
44
45 public String getQuery() {
46 return query;
47 }
48
49 public void setQuery(String query) {
50 this.query = query;
51 }
52
53 public String getType() {
54 return type;
55 }
56
57 public void setType(String type) {
58 this.type = type;
59 }
60
61 public JSONObject getSemantic() {
62 return semantic;
63 }
64
65 public void setSemantic(JSONObject semantic) {
66 this.semantic = semantic;
67 }
68
69 public JSONArray getResult() {
70 return result;
71 }
72
73 public void setResult(JSONArray result) {
74 this.result = result;
75 }
76
77 public String getAnswer() {
78 return answer;
79 }
80
81 public void setAnswer(String answer) {
82 this.answer = answer;
83 }
84
85 public String getText() {
86 return text;
87 }
88
89 public void setText(String text) {
90 this.text = text;
91 }
92
93 @Override
94 public String toString() {
95 return "SemResult [query=" + query + ", type=" + type + ", semantic=" + semantic
96 + ", result=" + result + ", answer=" + answer + ", " + super.toString() + "]";
97 }
98 }