Skip to content

Commit 705b6c9

Browse files
committed
Minor Changes
1 parent 1da907a commit 705b6c9

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

src/main/java/entities/user_entities/BasicUser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package entities.user_entities;
22

3-
public class BasicUser extends User{
3+
public class BasicUser extends User {
44
public BasicUser(String Username, String Password, String Email){
55
super(Username, Password, Email);
66
}

src/main/java/entities/user_entities/User.java

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
package entities.user_entities;
2-
3-
import interface_adapters.User.*;
2+
import use_cases.user_attribute_modification_use_case.Changeable;
43

54
import java.io.Serializable;
6-
7-
public abstract class User implements Serializable, Changeable, UserAuthenticationI {
5+
public abstract class User implements Serializable, Changeable {
86
protected String username;
97
protected String password;
108
protected String email;
119
boolean verified = false;
1210
boolean online = false;
13-
// protected ArrayList<Chat> chats;
1411
public User(String username, String password, String email){
1512
this.username = username;
1613
this.password = password;
1714
this.email = email;
18-
// this.chats = new ArrayList<Chat>();
1915
}
2016
public String getEmail(){
2117
return this.email;
@@ -27,17 +23,8 @@ private String getPassword(){
2723
return this.password;
2824
}
2925

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-
3926
@Override
40-
// from interface_adapters.User.Changeable
27+
// from UseCase.Changeable
4128
public void changeFeature(String feature, String newFeature){
4229
if (feature == "Username"){
4330
this.username = newFeature;

0 commit comments

Comments
 (0)