Skip to content

Commit 0a3378b

Browse files
committed
Added list of chats to User (uncomment after merge)
1 parent a063654 commit 0a3378b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/User.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import java.io.Serializable;
2+
import java.util.ArrayList;
3+
24
public abstract class User implements Serializable, Changeable{
35
protected String username;
46
protected String password;
57
protected String email;
68
boolean verified = false;
79
boolean online = false;
10+
// protected ArrayList<Chat> chats;
811
public User(String username, String password, String email){
912
this.username = username;
1013
this.password = password;
1114
this.email = email;
15+
// this.chats = new ArrayList<Chat>();
1216
}
1317
public String getEmail(){
1418
return this.email;
@@ -20,6 +24,10 @@ private String getPassword(){
2024
return this.password;
2125
}
2226

27+
// public ArrayList<Chat> getChats() {
28+
// return this.chats;
29+
// }
30+
2331
public Boolean PasswordMatch(String attempt){
2432
return (this.getPassword().equals(attempt));
2533
}

0 commit comments

Comments
 (0)