public void Update(DestinyProfileCollectiblesComponent?other) { if (other is null) { return; } if (!RecentCollectibleHashes.DeepEqualsListNaive(other.RecentCollectibleHashes)) { RecentCollectibleHashes = other.RecentCollectibleHashes; OnPropertyChanged(nameof(RecentCollectibleHashes)); } if (!NewnessFlaggedCollectibleHashes.DeepEqualsListNaive(other.NewnessFlaggedCollectibleHashes)) { NewnessFlaggedCollectibleHashes = other.NewnessFlaggedCollectibleHashes; OnPropertyChanged(nameof(NewnessFlaggedCollectibleHashes)); } if (!Collectibles.DeepEqualsDictionary(other.Collectibles)) { Collectibles = other.Collectibles; OnPropertyChanged(nameof(Collectibles)); } if (CollectionCategoriesRootNodeHash != other.CollectionCategoriesRootNodeHash) { CollectionCategoriesRootNodeHash = other.CollectionCategoriesRootNodeHash; OnPropertyChanged(nameof(CollectionCategoriesRootNodeHash)); } if (CollectionBadgesRootNodeHash != other.CollectionBadgesRootNodeHash) { CollectionBadgesRootNodeHash = other.CollectionBadgesRootNodeHash; OnPropertyChanged(nameof(CollectionBadgesRootNodeHash)); } }
public bool DeepEquals(DestinyCollectiblesComponent?other) { return(other is not null && Collectibles.DeepEqualsDictionary(other.Collectibles) && CollectionCategoriesRootNodeHash == other.CollectionCategoriesRootNodeHash && CollectionBadgesRootNodeHash == other.CollectionBadgesRootNodeHash); }
public bool DeepEquals(DestinyProfileCollectiblesComponent?other) { return(other is not null && RecentCollectibleHashes.DeepEqualsListNaive(other.RecentCollectibleHashes) && NewnessFlaggedCollectibleHashes.DeepEqualsListNaive(other.NewnessFlaggedCollectibleHashes) && Collectibles.DeepEqualsDictionary(other.Collectibles) && CollectionCategoriesRootNodeHash == other.CollectionCategoriesRootNodeHash && CollectionBadgesRootNodeHash == other.CollectionBadgesRootNodeHash); }
public void Update(DestinyCollectiblesComponent?other) { if (other is null) { return; } if (!Collectibles.DeepEqualsDictionary(other.Collectibles)) { Collectibles = other.Collectibles; OnPropertyChanged(nameof(Collectibles)); } if (CollectionCategoriesRootNodeHash != other.CollectionCategoriesRootNodeHash) { CollectionCategoriesRootNodeHash = other.CollectionCategoriesRootNodeHash; OnPropertyChanged(nameof(CollectionCategoriesRootNodeHash)); } if (CollectionBadgesRootNodeHash != other.CollectionBadgesRootNodeHash) { CollectionBadgesRootNodeHash = other.CollectionBadgesRootNodeHash; OnPropertyChanged(nameof(CollectionBadgesRootNodeHash)); } }