-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserDBInt.java
More file actions
44 lines (30 loc) · 900 Bytes
/
Copy pathUserDBInt.java
File metadata and controls
44 lines (30 loc) · 900 Bytes
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
/**
* Interface for UserDB
* @author Mukund Venkatesh
* @version November 1, 2024
*/
public interface UserDBInt {
User createUser(String username, String password, String firstName, String lastName, byte[] profilePicture)
throws BadDataException;
static void removeFriend(User user, User friend) {
}
static void addFriend(User user, User friend) {
}
static void blockUser(User user, User blockedUser) {
}
static boolean unblockUser(User user, User blockedUser) {
return false;
}
static User getUser(String username) {
return null;
}
boolean verifyLogin(String username, String password);
boolean changeUsername(User user, String newUsername);
static boolean legalPassword(String password) {
return false;
}
void writeDB(User user);
static void updateDB() {
}
void load();
}