public bool DeepEquals(Destiny2CoreSettings?other) { return(other is not null && CollectionRootNode == other.CollectionRootNode && BadgesRootNode == other.BadgesRootNode && RecordsRootNode == other.RecordsRootNode && MedalsRootNode == other.MedalsRootNode && MetricsRootNode == other.MetricsRootNode && ActiveTriumphsRootNodeHash == other.ActiveTriumphsRootNodeHash && ActiveSealsRootNodeHash == other.ActiveSealsRootNodeHash && LegacyTriumphsRootNodeHash == other.LegacyTriumphsRootNodeHash && LegacySealsRootNodeHash == other.LegacySealsRootNodeHash && MedalsRootNodeHash == other.MedalsRootNodeHash && ExoticCatalystsRootNodeHash == other.ExoticCatalystsRootNodeHash && LoreRootNodeHash == other.LoreRootNodeHash && CurrentRankProgressionHashes.DeepEqualsListNaive(other.CurrentRankProgressionHashes) && InsertPlugFreeProtectedPlugItemHashes.DeepEqualsListNaive(other.InsertPlugFreeProtectedPlugItemHashes) && InsertPlugFreeBlockedSocketTypeHashes.DeepEqualsListNaive(other.InsertPlugFreeBlockedSocketTypeHashes) && UndiscoveredCollectibleImage == other.UndiscoveredCollectibleImage && AmmoTypeHeavyIcon == other.AmmoTypeHeavyIcon && AmmoTypeSpecialIcon == other.AmmoTypeSpecialIcon && AmmoTypePrimaryIcon == other.AmmoTypePrimaryIcon && CurrentSeasonalArtifactHash == other.CurrentSeasonalArtifactHash && CurrentSeasonHash == other.CurrentSeasonHash && SeasonalChallengesPresentationNodeHash == other.SeasonalChallengesPresentationNodeHash && FutureSeasonHashes.DeepEqualsListNaive(other.FutureSeasonHashes) && PastSeasonHashes.DeepEqualsListNaive(other.PastSeasonHashes)); }
public void Update(Destiny2CoreSettings?other) { if (other is null) { return; } if (CollectionRootNode != other.CollectionRootNode) { CollectionRootNode = other.CollectionRootNode; OnPropertyChanged(nameof(CollectionRootNode)); } if (BadgesRootNode != other.BadgesRootNode) { BadgesRootNode = other.BadgesRootNode; OnPropertyChanged(nameof(BadgesRootNode)); } if (RecordsRootNode != other.RecordsRootNode) { RecordsRootNode = other.RecordsRootNode; OnPropertyChanged(nameof(RecordsRootNode)); } if (MedalsRootNode != other.MedalsRootNode) { MedalsRootNode = other.MedalsRootNode; OnPropertyChanged(nameof(MedalsRootNode)); } if (MetricsRootNode != other.MetricsRootNode) { MetricsRootNode = other.MetricsRootNode; OnPropertyChanged(nameof(MetricsRootNode)); } if (ActiveTriumphsRootNodeHash != other.ActiveTriumphsRootNodeHash) { ActiveTriumphsRootNodeHash = other.ActiveTriumphsRootNodeHash; OnPropertyChanged(nameof(ActiveTriumphsRootNodeHash)); } if (ActiveSealsRootNodeHash != other.ActiveSealsRootNodeHash) { ActiveSealsRootNodeHash = other.ActiveSealsRootNodeHash; OnPropertyChanged(nameof(ActiveSealsRootNodeHash)); } if (LegacyTriumphsRootNodeHash != other.LegacyTriumphsRootNodeHash) { LegacyTriumphsRootNodeHash = other.LegacyTriumphsRootNodeHash; OnPropertyChanged(nameof(LegacyTriumphsRootNodeHash)); } if (LegacySealsRootNodeHash != other.LegacySealsRootNodeHash) { LegacySealsRootNodeHash = other.LegacySealsRootNodeHash; OnPropertyChanged(nameof(LegacySealsRootNodeHash)); } if (MedalsRootNodeHash != other.MedalsRootNodeHash) { MedalsRootNodeHash = other.MedalsRootNodeHash; OnPropertyChanged(nameof(MedalsRootNodeHash)); } if (ExoticCatalystsRootNodeHash != other.ExoticCatalystsRootNodeHash) { ExoticCatalystsRootNodeHash = other.ExoticCatalystsRootNodeHash; OnPropertyChanged(nameof(ExoticCatalystsRootNodeHash)); } if (LoreRootNodeHash != other.LoreRootNodeHash) { LoreRootNodeHash = other.LoreRootNodeHash; OnPropertyChanged(nameof(LoreRootNodeHash)); } if (!CurrentRankProgressionHashes.DeepEqualsListNaive(other.CurrentRankProgressionHashes)) { CurrentRankProgressionHashes = other.CurrentRankProgressionHashes; OnPropertyChanged(nameof(CurrentRankProgressionHashes)); } if (!InsertPlugFreeProtectedPlugItemHashes.DeepEqualsListNaive(other.InsertPlugFreeProtectedPlugItemHashes)) { InsertPlugFreeProtectedPlugItemHashes = other.InsertPlugFreeProtectedPlugItemHashes; OnPropertyChanged(nameof(InsertPlugFreeProtectedPlugItemHashes)); } if (!InsertPlugFreeBlockedSocketTypeHashes.DeepEqualsListNaive(other.InsertPlugFreeBlockedSocketTypeHashes)) { InsertPlugFreeBlockedSocketTypeHashes = other.InsertPlugFreeBlockedSocketTypeHashes; OnPropertyChanged(nameof(InsertPlugFreeBlockedSocketTypeHashes)); } if (UndiscoveredCollectibleImage != other.UndiscoveredCollectibleImage) { UndiscoveredCollectibleImage = other.UndiscoveredCollectibleImage; OnPropertyChanged(nameof(UndiscoveredCollectibleImage)); } if (AmmoTypeHeavyIcon != other.AmmoTypeHeavyIcon) { AmmoTypeHeavyIcon = other.AmmoTypeHeavyIcon; OnPropertyChanged(nameof(AmmoTypeHeavyIcon)); } if (AmmoTypeSpecialIcon != other.AmmoTypeSpecialIcon) { AmmoTypeSpecialIcon = other.AmmoTypeSpecialIcon; OnPropertyChanged(nameof(AmmoTypeSpecialIcon)); } if (AmmoTypePrimaryIcon != other.AmmoTypePrimaryIcon) { AmmoTypePrimaryIcon = other.AmmoTypePrimaryIcon; OnPropertyChanged(nameof(AmmoTypePrimaryIcon)); } if (CurrentSeasonalArtifactHash != other.CurrentSeasonalArtifactHash) { CurrentSeasonalArtifactHash = other.CurrentSeasonalArtifactHash; OnPropertyChanged(nameof(CurrentSeasonalArtifactHash)); } if (CurrentSeasonHash != other.CurrentSeasonHash) { CurrentSeasonHash = other.CurrentSeasonHash; OnPropertyChanged(nameof(CurrentSeasonHash)); } if (SeasonalChallengesPresentationNodeHash != other.SeasonalChallengesPresentationNodeHash) { SeasonalChallengesPresentationNodeHash = other.SeasonalChallengesPresentationNodeHash; OnPropertyChanged(nameof(SeasonalChallengesPresentationNodeHash)); } if (!FutureSeasonHashes.DeepEqualsListNaive(other.FutureSeasonHashes)) { FutureSeasonHashes = other.FutureSeasonHashes; OnPropertyChanged(nameof(FutureSeasonHashes)); } if (!PastSeasonHashes.DeepEqualsListNaive(other.PastSeasonHashes)) { PastSeasonHashes = other.PastSeasonHashes; OnPropertyChanged(nameof(PastSeasonHashes)); } }
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)) )); }