sendFriendRequest static method

void sendFriendRequest(
  1. LocalityUser fromUser,
  2. LocalityUser toUser
)

Implementation

static void sendFriendRequest(LocalityUser fromUser, LocalityUser toUser) {
  FriendListPubSub targetFriendList = getFriendListOfUser(toUser);
  targetFriendList.sendFriendRequestToThisUser(fromUser, toUser);

  FriendListPubSub sourceFriendList = getFriendListOfUser(fromUser);
  sourceFriendList.sendFriendRequestToThisUser(fromUser, toUser);
}