Ejemplo n.º 1
0
        public bool Equals(DestinyCharacterComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     MembershipId == input.MembershipId ||
                     (MembershipId.Equals(input.MembershipId))
                     ) &&
                 (
                     MembershipType == input.MembershipType ||
                     (MembershipType != null && MembershipType.Equals(input.MembershipType))
                 ) &&
                 (
                     CharacterId == input.CharacterId ||
                     (CharacterId.Equals(input.CharacterId))
                 ) &&
                 (
                     DateLastPlayed == input.DateLastPlayed ||
                     (DateLastPlayed != null && DateLastPlayed.Equals(input.DateLastPlayed))
                 ) &&
                 (
                     MinutesPlayedThisSession == input.MinutesPlayedThisSession ||
                     (MinutesPlayedThisSession.Equals(input.MinutesPlayedThisSession))
                 ) &&
                 (
                     MinutesPlayedTotal == input.MinutesPlayedTotal ||
                     (MinutesPlayedTotal.Equals(input.MinutesPlayedTotal))
                 ) &&
                 (
                     Light == input.Light ||
                     (Light.Equals(input.Light))
                 ) &&
                 (
                     Stats == input.Stats ||
                     (Stats != null && Stats.SequenceEqual(input.Stats))
                 ) &&
                 (
                     RaceHash == input.RaceHash ||
                     (RaceHash.Equals(input.RaceHash))
                 ) &&
                 (
                     GenderHash == input.GenderHash ||
                     (GenderHash.Equals(input.GenderHash))
                 ) &&
                 (
                     ClassHash == input.ClassHash ||
                     (ClassHash.Equals(input.ClassHash))
                 ) &&
                 (
                     RaceType == input.RaceType ||
                     (RaceType != null && RaceType.Equals(input.RaceType))
                 ) &&
                 (
                     ClassType == input.ClassType ||
                     (ClassType != null && ClassType.Equals(input.ClassType))
                 ) &&
                 (
                     GenderType == input.GenderType ||
                     (GenderType != null && GenderType.Equals(input.GenderType))
                 ) &&
                 (
                     EmblemPath == input.EmblemPath ||
                     (EmblemPath != null && EmblemPath.Equals(input.EmblemPath))
                 ) &&
                 (
                     EmblemBackgroundPath == input.EmblemBackgroundPath ||
                     (EmblemBackgroundPath != null && EmblemBackgroundPath.Equals(input.EmblemBackgroundPath))
                 ) &&
                 (
                     EmblemHash == input.EmblemHash ||
                     (EmblemHash.Equals(input.EmblemHash))
                 ) &&
                 (
                     EmblemColor == input.EmblemColor ||
                     (EmblemColor != null && EmblemColor.Equals(input.EmblemColor))
                 ) &&
                 (
                     LevelProgression == input.LevelProgression ||
                     (LevelProgression != null && LevelProgression.Equals(input.LevelProgression))
                 ) &&
                 (
                     BaseCharacterLevel == input.BaseCharacterLevel ||
                     (BaseCharacterLevel.Equals(input.BaseCharacterLevel))
                 ) &&
                 (
                     PercentToNextLevel == input.PercentToNextLevel ||
                     (PercentToNextLevel.Equals(input.PercentToNextLevel))
                 ) &&
                 (
                     TitleRecordHash == input.TitleRecordHash ||
                     (TitleRecordHash.Equals(input.TitleRecordHash))
                 ));
        }