-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.pde
More file actions
135 lines (107 loc) · 2.56 KB
/
User.pde
File metadata and controls
135 lines (107 loc) · 2.56 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
//Programme object, used to store information for each user
public class User {
//declare variable for values
private int user_id;
private String user_name;
private String password;
private int therapist_id;
private String first_name;
private String last_name;
private String dob;
private String height;
private String weight;
private String sex;
private String injury_type;
private String error = null;
public User () {
this.user_id = -1;
}
//constructor that takes all values and sets them
public User (int id, String un, String pw, int tid, String fn, String ln, String db, String uh, String wt, String sx, String it, String er) {
this.user_id = id;
this.user_name = un;
this.password = pw;
this.therapist_id = tid;
this.first_name = fn;
this.last_name = ln;
this.dob = db;
this.height = uh;
this.weight = wt;
this.sex = sx;
this.injury_type = it;
this.error = er;
}
//getters and setters for the user values
public int getUser_id() {
return user_id;
}
public String getDob() {
return dob;
}
public void setDob(String dob) {
this.dob = dob;
}
public String getHeight() {
return height;
}
public void setHeight(String height) {
this.height = height;
}
public String getWeight() {
return weight;
}
public void setWeight(String weight) {
this.weight = weight;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getInjury_type() {
return injury_type;
}
public void setInjury_type(String injury_type) {
this.injury_type = injury_type;
}
public void setUser_id(int user_id) {
this.user_id = user_id;
}
public String getUser_name() {
return user_name;
}
public void setUser_name(String user_name) {
this.user_name = user_name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getTherapist_id() {
return therapist_id;
}
public void setTherapist_id(int therapist_id) {
this.therapist_id = therapist_id;
}
public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
public String getLast_name() {
return last_name;
}
public void setLast_name(String last_name) {
this.last_name = last_name;
}
public String getError() {
return this.error;
}
public void setError(String err) {
this.error = err;
}
}