Paper.java
1.99 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
package com.fh.bean;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.Gson;
public class Paper {
private String title = "";
private String exam_time = "";
private String paper_type = "";
private String subject_id = "";
private String grade_id = "";
private String user_id = "";
private String class_id = "" ;
private String school_id = "" ;
public String getSchool_id() {
return school_id;
}
public void setSchool_id(String school_id) {
this.school_id = school_id;
}
private List<Question> questions = new ArrayList<Question>();
private String score = "";
public void setTitle(String title) {
this.title = title;
}
public String getTitle() {
return this.title;
}
public void setExam_time(String exam_time) {
this.exam_time = exam_time;
}
public String getExam_time() {
return this.exam_time;
}
public void setPaper_type(String paper_type) {
this.paper_type = paper_type;
}
public String getPaper_type() {
return this.paper_type;
}
public void setSubject_id(String subject_id) {
this.subject_id = subject_id;
}
public String getSubject_id() {
return this.subject_id;
}
public void setGrade_id(String grade_id) {
this.grade_id = grade_id;
}
public String getGrade_id() {
return this.grade_id;
}
public void setUser_id(String user_id) {
this.user_id = user_id;
}
public String getUser_id() {
return this.user_id;
}
public void setQuestions(List<Question> questions) {
this.questions = questions;
}
public List<Question> getQuestions() {
return this.questions;
}
public String getScore() {
return score;
}
public void setScore(String score) {
this.score = score;
}
public String getClass_id() {
return class_id;
}
public void setClass_id(String class_id) {
this.class_id = class_id;
}
public static Paper parse(String json){
Gson gson = new Gson();
return gson.fromJson(json, Paper.class);
}
public String toJson(){
Gson gson = new Gson();
return gson.toJson(this);
}
}