-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserClientInt.java
More file actions
24 lines (23 loc) · 931 Bytes
/
Copy pathUserClientInt.java
File metadata and controls
24 lines (23 loc) · 931 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
import java.io.IOException;
/**
* Team Project -- UserClientInt
*
* This is the interface for the UserClient
*
* @author Mukund Venkatesh, Kush Kodiya
*
* @version November 17, 2024
*/
public interface UserClientInt {
String sendMessage(String receiver, String content, String picture) throws BadDataException, IOException;
void deleteMessage(int id) throws BadDataException, IOException;
String editMessage(int id, String newContent) throws IOException;
void blockUser(String u) throws IOException;
boolean unblockUser(String u) throws IOException;
boolean addFriend(String u) throws IOException;
boolean removeFriend(String u) throws IOException;
boolean setUserName(String name) throws IOException;
boolean setPassword(String password) throws IOException;
void addOrRemoveFriend(String username) throws IOException;
void blockOrUnblock(String username) throws IOException;
}