1
1
package entities .user_entities ;
2
-
3
- import interface_adapters .User .*;
2
+ import use_cases .user_attribute_modification_use_case .Changeable ;
4
3
5
4
import java .io .Serializable ;
6
-
7
- public abstract class User implements Serializable , Changeable , UserAuthenticationI {
5
+ public abstract class User implements Serializable , Changeable {
8
6
protected String username ;
9
7
protected String password ;
10
8
protected String email ;
11
9
boolean verified = false ;
12
10
boolean online = false ;
13
- // protected ArrayList<Chat> chats;
14
11
public User (String username , String password , String email ){
15
12
this .username = username ;
16
13
this .password = password ;
17
14
this .email = email ;
18
- // this.chats = new ArrayList<Chat>();
19
15
}
20
16
public String getEmail (){
21
17
return this .email ;
@@ -27,17 +23,8 @@ private String getPassword(){
27
23
return this .password ;
28
24
}
29
25
30
- // public ArrayList<Chat> getChats() {
31
- // return this.chats;
32
- // }
33
-
34
- @ Override
35
- public Boolean PasswordMatch (String attempt ){
36
- return (this .getPassword ().equals (attempt ));
37
- }
38
-
39
26
@ Override
40
- // from interface_adapters.User .Changeable
27
+ // from UseCase .Changeable
41
28
public void changeFeature (String feature , String newFeature ){
42
29
if (feature == "Username" ){
43
30
this .username = newFeature ;
0 commit comments