コード例 #1
0
        public bool Equals(DestinyProfileComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     UserInfo == input.UserInfo ||
                     (UserInfo != null && UserInfo.Equals(input.UserInfo))
                     ) &&
                 (
                     DateLastPlayed == input.DateLastPlayed ||
                     (DateLastPlayed != null && DateLastPlayed.Equals(input.DateLastPlayed))
                 ) &&
                 (
                     VersionsOwned == input.VersionsOwned ||
                     (VersionsOwned != null && VersionsOwned.Equals(input.VersionsOwned))
                 ) &&
                 (
                     CharacterIds == input.CharacterIds ||
                     (CharacterIds != null && CharacterIds.SequenceEqual(input.CharacterIds))
                 ) &&
                 (
                     SeasonHashes == input.SeasonHashes ||
                     (SeasonHashes != null && SeasonHashes.SequenceEqual(input.SeasonHashes))
                 ) &&
                 (
                     CurrentSeasonHash == input.CurrentSeasonHash ||
                     (CurrentSeasonHash.Equals(input.CurrentSeasonHash))
                 ) &&
                 (
                     CurrentSeasonRewardPowerCap == input.CurrentSeasonRewardPowerCap ||
                     (CurrentSeasonRewardPowerCap.Equals(input.CurrentSeasonRewardPowerCap))
                 ));
        }
コード例 #2
0
        public bool Equals(Destiny2CoreSettings input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     CollectionRootNode == input.CollectionRootNode ||
                     (CollectionRootNode.Equals(input.CollectionRootNode))
                     ) &&
                 (
                     BadgesRootNode == input.BadgesRootNode ||
                     (BadgesRootNode.Equals(input.BadgesRootNode))
                 ) &&
                 (
                     RecordsRootNode == input.RecordsRootNode ||
                     (RecordsRootNode.Equals(input.RecordsRootNode))
                 ) &&
                 (
                     MedalsRootNode == input.MedalsRootNode ||
                     (MedalsRootNode.Equals(input.MedalsRootNode))
                 ) &&
                 (
                     MetricsRootNode == input.MetricsRootNode ||
                     (MetricsRootNode.Equals(input.MetricsRootNode))
                 ) &&
                 (
                     ActiveTriumphsRootNodeHash == input.ActiveTriumphsRootNodeHash ||
                     (ActiveTriumphsRootNodeHash.Equals(input.ActiveTriumphsRootNodeHash))
                 ) &&
                 (
                     ActiveSealsRootNodeHash == input.ActiveSealsRootNodeHash ||
                     (ActiveSealsRootNodeHash.Equals(input.ActiveSealsRootNodeHash))
                 ) &&
                 (
                     LegacyTriumphsRootNodeHash == input.LegacyTriumphsRootNodeHash ||
                     (LegacyTriumphsRootNodeHash.Equals(input.LegacyTriumphsRootNodeHash))
                 ) &&
                 (
                     LegacySealsRootNodeHash == input.LegacySealsRootNodeHash ||
                     (LegacySealsRootNodeHash.Equals(input.LegacySealsRootNodeHash))
                 ) &&
                 (
                     MedalsRootNodeHash == input.MedalsRootNodeHash ||
                     (MedalsRootNodeHash.Equals(input.MedalsRootNodeHash))
                 ) &&
                 (
                     ExoticCatalystsRootNodeHash == input.ExoticCatalystsRootNodeHash ||
                     (ExoticCatalystsRootNodeHash.Equals(input.ExoticCatalystsRootNodeHash))
                 ) &&
                 (
                     LoreRootNodeHash == input.LoreRootNodeHash ||
                     (LoreRootNodeHash.Equals(input.LoreRootNodeHash))
                 ) &&
                 (
                     CurrentRankProgressionHashes == input.CurrentRankProgressionHashes ||
                     (CurrentRankProgressionHashes != null && CurrentRankProgressionHashes.SequenceEqual(input.CurrentRankProgressionHashes))
                 ) &&
                 (
                     UndiscoveredCollectibleImage == input.UndiscoveredCollectibleImage ||
                     (UndiscoveredCollectibleImage != null && UndiscoveredCollectibleImage.Equals(input.UndiscoveredCollectibleImage))
                 ) &&
                 (
                     AmmoTypeHeavyIcon == input.AmmoTypeHeavyIcon ||
                     (AmmoTypeHeavyIcon != null && AmmoTypeHeavyIcon.Equals(input.AmmoTypeHeavyIcon))
                 ) &&
                 (
                     AmmoTypeSpecialIcon == input.AmmoTypeSpecialIcon ||
                     (AmmoTypeSpecialIcon != null && AmmoTypeSpecialIcon.Equals(input.AmmoTypeSpecialIcon))
                 ) &&
                 (
                     AmmoTypePrimaryIcon == input.AmmoTypePrimaryIcon ||
                     (AmmoTypePrimaryIcon != null && AmmoTypePrimaryIcon.Equals(input.AmmoTypePrimaryIcon))
                 ) &&
                 (
                     CurrentSeasonalArtifactHash == input.CurrentSeasonalArtifactHash ||
                     (CurrentSeasonalArtifactHash.Equals(input.CurrentSeasonalArtifactHash))
                 ) &&
                 (
                     CurrentSeasonHash == input.CurrentSeasonHash ||
                     (CurrentSeasonHash.Equals(input.CurrentSeasonHash))
                 ) &&
                 (
                     SeasonalChallengesPresentationNodeHash == input.SeasonalChallengesPresentationNodeHash ||
                     (SeasonalChallengesPresentationNodeHash.Equals(input.SeasonalChallengesPresentationNodeHash))
                 ) &&
                 (
                     FutureSeasonHashes == input.FutureSeasonHashes ||
                     (FutureSeasonHashes != null && FutureSeasonHashes.SequenceEqual(input.FutureSeasonHashes))
                 ) &&
                 (
                     PastSeasonHashes == input.PastSeasonHashes ||
                     (PastSeasonHashes != null && PastSeasonHashes.SequenceEqual(input.PastSeasonHashes))
                 ));
        }