sendFriendRequest static method

void sendFriendRequest(
  1. LocalityUser fromUser,
  2. 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);
}