forked from raghaddmahgoub/OOP-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotification.java
More file actions
44 lines (36 loc) · 1.24 KB
/
Notification.java
File metadata and controls
44 lines (36 loc) · 1.24 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
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.ArrayList;
public class Notification {
////////////////////////////////////////////**ATTRIBUTES**//////////////////////////////////////
protected static int notificationID=0;
protected String Content;
protected Timestamp TimeStamp;
protected boolean Recipient;
// Status
//////////////////////////////////////////**CONSTRUCTORS**///////////////////////////////////////////
public Notification() {
notificationID++;
TimeStamp= Timestamp.valueOf(LocalDateTime.now());
}
////////////////////////////////////////////**METHODS**//////////////////////////////////////////////
public static int getNotificationID() {
return notificationID;
}
public Timestamp getTimeStamp() {
return TimeStamp;
}
public String getContent() {
return Content;
}
public void setContent(String content) {
//if user comment or reply or reacted or added or accepted or tagged another user (in the main class)
Content = content;
}
public boolean isRecipient() {
return Recipient;
}
public void setRecipient(boolean recipient) {
Recipient = recipient;
}
}