public bool Equals(UserSearchResponseDetail input) { if (input == null) { return(false); } return (( BungieGlobalDisplayName == input.BungieGlobalDisplayName || (BungieGlobalDisplayName != null && BungieGlobalDisplayName.Equals(input.BungieGlobalDisplayName)) ) && ( BungieGlobalDisplayNameCode == input.BungieGlobalDisplayNameCode || (BungieGlobalDisplayNameCode.Equals(input.BungieGlobalDisplayNameCode)) ) && ( BungieNetMembershipId == input.BungieNetMembershipId || (BungieNetMembershipId.Equals(input.BungieNetMembershipId)) ) && ( DestinyMemberships == input.DestinyMemberships || (DestinyMemberships != null && DestinyMemberships.SequenceEqual(input.DestinyMemberships)) )); }
public bool Equals(BungieFriend input) { if (input == null) { return(false); } return (( LastSeenAsMembershipId == input.LastSeenAsMembershipId || (LastSeenAsMembershipId.Equals(input.LastSeenAsMembershipId)) ) && ( LastSeenAsBungieMembershipType == input.LastSeenAsBungieMembershipType || (LastSeenAsBungieMembershipType != null && LastSeenAsBungieMembershipType.Equals(input.LastSeenAsBungieMembershipType)) ) && ( BungieGlobalDisplayName == input.BungieGlobalDisplayName || (BungieGlobalDisplayName != null && BungieGlobalDisplayName.Equals(input.BungieGlobalDisplayName)) ) && ( BungieGlobalDisplayNameCode == input.BungieGlobalDisplayNameCode || (BungieGlobalDisplayNameCode.Equals(input.BungieGlobalDisplayNameCode)) ) && ( OnlineStatus == input.OnlineStatus || (OnlineStatus != null && OnlineStatus.Equals(input.OnlineStatus)) ) && ( OnlineTitle == input.OnlineTitle || (OnlineTitle != null && OnlineTitle.Equals(input.OnlineTitle)) ) && ( Relationship == input.Relationship || (Relationship != null && Relationship.Equals(input.Relationship)) ) && ( BungieNetUser == input.BungieNetUser || (BungieNetUser != null && BungieNetUser.Equals(input.BungieNetUser)) )); }