-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComment.pde
More file actions
81 lines (64 loc) · 1.63 KB
/
Comment.pde
File metadata and controls
81 lines (64 loc) · 1.63 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
//Comment object, used to store information for each comment
public class Comment {
//declare variable for values
private int comment_id;
private int therapist_id;
private int user_id;
private String comment;
private int date_entered;
private int record_date;
private String error = null;
//constructor that takes all values and sets them
public Comment (int id, int t_id, int u_id, String c, int d_e, int r_d, String er) {
this.comment_id = id;
this.therapist_id = t_id;
this.user_id = u_id;
this.comment = c;
this.date_entered = d_e;
this.record_date = r_d;
this.error = er;
}
//getters and setters for the comment values
public int getComment_id() {
return comment_id;
}
public int getTherapist_id() {
return therapist_id;
}
public int getUser_id() {
return user_id;
}
public String getComment() {
return comment;
}
public int getDateEntered() {
return date_entered;
}
public int getRecordDate() {
return record_date;
}
public String getError() {
return error;
}
public void setComment_id(int comment_id) {
this.comment_id = comment_id;
}
public void setTherapist_id(int therapist_id) {
this.therapist_id = therapist_id;
}
public void setUser_id(int user_id) {
this.user_id = user_id;
}
public void setComment(String comment) {
this.comment = comment;
}
public void setDateEntered(int date_entered) {
this.date_entered = date_entered;
}
public void setRecordDate(int record_date) {
this.record_date = record_date;
}
public void setError(String error) {
this.error = error;
}
}