public bool Equals(DestinyCharacterRecordsComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FeaturedRecordHashes == input.FeaturedRecordHashes ||
                     (FeaturedRecordHashes != null && FeaturedRecordHashes.SequenceEqual(input.FeaturedRecordHashes))
                     ) &&
                 (
                     Records == input.Records ||
                     (Records != null && Records.SequenceEqual(input.Records))
                 ) &&
                 (
                     RecordCategoriesRootNodeHash == input.RecordCategoriesRootNodeHash ||
                     (RecordCategoriesRootNodeHash.Equals(input.RecordCategoriesRootNodeHash))
                 ) &&
                 (
                     RecordSealsRootNodeHash == input.RecordSealsRootNodeHash ||
                     (RecordSealsRootNodeHash.Equals(input.RecordSealsRootNodeHash))
                 ));
        }
Пример #2
0
        public bool Equals(DestinyProfileRecordsComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Score == input.Score ||
                     (Score.Equals(input.Score))
                     ) &&
                 (
                     ActiveScore == input.ActiveScore ||
                     (ActiveScore.Equals(input.ActiveScore))
                 ) &&
                 (
                     LegacyScore == input.LegacyScore ||
                     (LegacyScore.Equals(input.LegacyScore))
                 ) &&
                 (
                     LifetimeScore == input.LifetimeScore ||
                     (LifetimeScore.Equals(input.LifetimeScore))
                 ) &&
                 (
                     TrackedRecordHash == input.TrackedRecordHash ||
                     (TrackedRecordHash.Equals(input.TrackedRecordHash))
                 ) &&
                 (
                     Records == input.Records ||
                     (Records != null && Records.SequenceEqual(input.Records))
                 ) &&
                 (
                     RecordCategoriesRootNodeHash == input.RecordCategoriesRootNodeHash ||
                     (RecordCategoriesRootNodeHash.Equals(input.RecordCategoriesRootNodeHash))
                 ) &&
                 (
                     RecordSealsRootNodeHash == input.RecordSealsRootNodeHash ||
                     (RecordSealsRootNodeHash.Equals(input.RecordSealsRootNodeHash))
                 ));
        }