Blame view

src/com/fh/bean/Paper.java 1.66 KB
338594c8   孙向锦   添加教师端页面
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
  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 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 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);
  	}
  }