StudentPaper.java
3.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
package com.fh.bean;
import java.util.List;
import com.google.gson.Gson;
public class StudentPaper {
public static class StudentAnswer{
private Float score;
private String number;
private String studentId;
private String losttest;
public String getLosttest() {
return losttest;
}
public void setLosttest(String losttest) {
this.losttest = losttest;
}
private List<Question> questions;
public Float getScore() {
return score;
}
public void setScore(Float score) {
this.score = score;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public String getStudentId() {
return studentId;
}
public void setStudentId(String studentId) {
this.studentId = studentId;
}
public List<Question> getQuestions() {
return questions;
}
public void setQuestions(List<Question> questions) {
this.questions = questions;
}
}
public static class Question{
private String answer;
private String pressTime;
private String questionId;
private String right;
private String score;
private String answerType;
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer;
}
public String getPressTime() {
return pressTime;
}
public void setPressTime(String pressTime) {
this.pressTime = pressTime;
}
public String getQuestionId() {
return questionId;
}
public void setQuestionId(String questionId) {
this.questionId = questionId;
}
public String getRight() {
return right;
}
public void setRight(String right) {
this.right = right;
}
public String getScore() {
return score;
}
public void setScore(String score) {
this.score = score;
}
public String getAnswerType() {
return answerType;
}
public void setAnswerType(String answerType) {
this.answerType = answerType;
}
}
private String createDate;
private String startDate;
private String endDate;
private String schoolId;
private String paperId;
private String name;
private String subject_id ;
private List<StudentAnswer> students;
public String getCreateDate() {
return createDate;
}
public void setCreateDate(String createDate) {
this.createDate = createDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public String getSchoolId() {
return schoolId;
}
public void setSchoolId(String schoolId) {
this.schoolId = schoolId;
}
public List<StudentAnswer> getStudents() {
return students;
}
public void setStudents(List<StudentAnswer> students) {
this.students = students;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getPaperId() {
return paperId;
}
public void setPaperId(String paperId) {
this.paperId = paperId;
}
public static StudentPaper parse(String json){
Gson gson = new Gson();
return gson.fromJson(json, StudentPaper.class);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSubject_id() {
return subject_id;
}
public void setSubject_id(String subject_id) {
this.subject_id = subject_id;
}
public String toJson(){
Gson gson = new Gson();
return gson.toJson(this);
}
}