forked from Harshil1823/Learning-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReview.java
More file actions
89 lines (79 loc) · 1.7 KB
/
Review.java
File metadata and controls
89 lines (79 loc) · 1.7 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
/**
* @author JavaDoc
* Represents a review of course.
*/
public class Review {
private String userId;
private String text;
private String rating;
private String date;
/**
* Constructor to initialize a review.
* @param userId String of user ID
* @param text String of review.
* @param rating String of rating.
* @param date String of date.
*/
public Review(String userID, String text, String rating, String date) {
this.userId = userID;
this.text = text;
this.rating = rating;
this.date = date;
}
/**
* Returns user ID
* @return String of user ID.
*/
public String getUserID() {
return userId;
}
/**
* Returns review.
* @return String of review.
*/
public String getText() {
return text;
}
/**
* Returns rating.
* @return String of rating.
*/
public String getRating() {
return rating;
}
/**
* Returns date.
* @return String of the date.
*/
public String getDate() {
return date;
}
/**
* Sets the userID.
* @param userId String of user ID.
*/
public void setUserID(String userID) {
this.userId = userID;
}
/**
* Sets the review.
* @param text String of the review.
*/
public void setText(String text) {
this.text = text;
}
/**
* Sets the rating.
* @param rating String of rating.
*/
public void setRating(String rating) {
this.rating = rating;
}
/**
* Sets the date.
* @param date String of the date.
*/
public void setDate(String date) {
this.date = date;
}
}