sendFriendRequest static method
void
sendFriendRequest(
- LocalityUser fromUser,
- LocalityUser toUser
Send a friend request from the source user to the target user
Implementation
static void sendFriendRequest(LocalityUser fromUser, LocalityUser toUser) {
FriendList targetFriendList = getFriendListOfUser(toUser);
targetFriendList.sendFriendRequestToThisUser(fromUser, toUser);
FriendList sourceFriendList = getFriendListOfUser(fromUser);
sourceFriendList.sendFriendRequestToThisUser(fromUser, toUser);
}