-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
User.java
61 lines (49 loc) · 1.37 KB
/
User.java
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
package linkedin;
import java.util.List;
public class User {
private final String id;
private final String name;
private final String email;
private final String password;
private Profile profile;
private final List<Connection> connections;
private final List<Message> inbox;
private final List<Message> sentMessages;
public User(String id, String name, String email, String password, Profile profile, List<Connection> connections, List<Message> inbox, List<Message> sentMessages) {
this.id = id;
this.name = name;
this.email = email;
this.password = password;
this.profile = profile;
this.connections = connections;
this.inbox = inbox;
this.sentMessages = sentMessages;
}
public void setProfile(Profile profile) {
this.profile = profile;
}
public String getId() {
return id;
}
public String getName() {
return name;
}
public String getEmail() {
return email;
}
public String getPassword() {
return password;
}
public Profile getProfile() {
return profile;
}
public List<Connection> getConnections() {
return connections;
}
public List<Message> getInbox() {
return inbox;
}
public List<Message> getSentMessages() {
return sentMessages;
}
}