-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerInterface.java
More file actions
28 lines (26 loc) · 1.19 KB
/
ServerInterface.java
File metadata and controls
28 lines (26 loc) · 1.19 KB
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
import java.util.ArrayList;
/**
* Team Project
*
* ServerInterface.java
*
* @author Huy Vu, Yanxin Yu - CS180 - L22
* @version 28 March 2024
*/
public interface ServerInterface extends Runnable {
boolean checkPasswordLength(String password);
boolean checkUserNameFormat(String userName);
boolean usernameInDatabase(String userName);
boolean inFriendList(String userNameOne, String userNameTwo);
boolean inBlockList(String userNameOne, String userNameTwo);
boolean createAccount(Database database, UserAccount userAccount, String username, String password);
boolean loginAccount(String username, String userPassword);
boolean addFriend(String userNameOne, String userNameTwo);
boolean deleteFriend(String userNameOne, String userNameTwo);
boolean blockUser(String userNameOne, String userNameTwo);
boolean unblockUser(String userNameOne, String userNameTwo);
ArrayList<String> searchUser(String userNameOne, String word);
boolean sendMessage(String senderUserName, String receiverUserName, String content);
boolean deleteMessage(String sender, String receiver, String messageID);
String printHistoryMessage(String senderName, String receiverName);
}