private bool WasFriend(string playerId, string friendId) { if (!string.IsNullOrEmpty(playerId) && !string.IsNullOrEmpty(friendId)) { PlayerData playerData = GetPlayerData(friendId); return(playerData.Friends.Contains(playerId) || playerData.IsCached(playerId)); } return(false); }
private bool WereFriends(string playerId, string friendId) { if (!string.IsNullOrEmpty(playerId) && !string.IsNullOrEmpty(friendId)) { PlayerData playerData = GetPlayerData(playerId); PlayerData friendData = GetPlayerData(friendId); return (playerData.Friends.Contains(friendId) || playerData.IsCached(friendId)) && (friendData.Friends.Contains(playerId) || friendData.IsCached(playerId)); } return false; }