private Dictionary <Button, string> GetCorrectButtonMapping() { if (currentUser is LoggedInUser) { return(isSelfMapping); } Friendship friendshipWithUser = LoggedInUser.GetLoggedInUser().GetFriendshipWithUser(currentUser); if (friendshipWithUser == null) { return(notFriendOptionMapping); } else if (friendshipWithUser.IsAccepted()) { return(friendOptionMapping); } else if (friendshipWithUser.IsRequestSentPending()) { return(receivedOptionMapping); } else if (friendshipWithUser.IsRequestReceivedPending()) { return(sentOptionMapping); } else { return(null); } }