Пример #1
0
 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));
     }
 }
Пример #2
0
 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);
 }