public void Update(DestinyItemQualityBlockDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!ItemLevels.DeepEqualsListNaive(other.ItemLevels))
     {
         ItemLevels = other.ItemLevels;
         OnPropertyChanged(nameof(ItemLevels));
     }
     if (QualityLevel != other.QualityLevel)
     {
         QualityLevel = other.QualityLevel;
         OnPropertyChanged(nameof(QualityLevel));
     }
     if (InfusionCategoryName != other.InfusionCategoryName)
     {
         InfusionCategoryName = other.InfusionCategoryName;
         OnPropertyChanged(nameof(InfusionCategoryName));
     }
     if (InfusionCategoryHash != other.InfusionCategoryHash)
     {
         InfusionCategoryHash = other.InfusionCategoryHash;
         OnPropertyChanged(nameof(InfusionCategoryHash));
     }
     if (!InfusionCategoryHashes.DeepEqualsListNaive(other.InfusionCategoryHashes))
     {
         InfusionCategoryHashes = other.InfusionCategoryHashes;
         OnPropertyChanged(nameof(InfusionCategoryHashes));
     }
     if (ProgressionLevelRequirementHash != other.ProgressionLevelRequirementHash)
     {
         ProgressionLevelRequirementHash = other.ProgressionLevelRequirementHash;
         OnPropertyChanged(nameof(ProgressionLevelRequirementHash));
     }
     if (CurrentVersion != other.CurrentVersion)
     {
         CurrentVersion = other.CurrentVersion;
         OnPropertyChanged(nameof(CurrentVersion));
     }
     if (!Versions.DeepEqualsList(other.Versions))
     {
         Versions = other.Versions;
         OnPropertyChanged(nameof(Versions));
     }
     if (!DisplayVersionWatermarkIcons.DeepEqualsListNaive(other.DisplayVersionWatermarkIcons))
     {
         DisplayVersionWatermarkIcons = other.DisplayVersionWatermarkIcons;
         OnPropertyChanged(nameof(DisplayVersionWatermarkIcons));
     }
 }
 public bool DeepEquals(DestinyItemQualityBlockDefinition?other)
 {
     return(other is not null &&
            ItemLevels.DeepEqualsListNaive(other.ItemLevels) &&
            QualityLevel == other.QualityLevel &&
            InfusionCategoryName == other.InfusionCategoryName &&
            InfusionCategoryHash == other.InfusionCategoryHash &&
            InfusionCategoryHashes.DeepEqualsListNaive(other.InfusionCategoryHashes) &&
            ProgressionLevelRequirementHash == other.ProgressionLevelRequirementHash &&
            CurrentVersion == other.CurrentVersion &&
            Versions.DeepEqualsList(other.Versions) &&
            DisplayVersionWatermarkIcons.DeepEqualsListNaive(other.DisplayVersionWatermarkIcons));
 }
Exemplo n.º 3
0
 public bool DeepEquals(InventoryItemQualityBlock other)
 {
     return(other != null &&
            CurrentVersion == other.CurrentVersion &&
            DisplayVersionWatermarkIcons.DeepEqualsReadOnlySimpleCollection(other.DisplayVersionWatermarkIcons) &&
            InfusionCategoryHash == other.InfusionCategoryHash &&
            InfusionCategoryHashes.DeepEqualsReadOnlySimpleCollection(other.InfusionCategoryHashes) &&
            InfusionCategoryName == other.InfusionCategoryName &&
            ItemLevels.DeepEqualsReadOnlySimpleCollection(other.ItemLevels) &&
            ProgressionLevelRequirement.DeepEquals(other.ProgressionLevelRequirement) &&
            QualityLevel == other.QualityLevel &&
            Versions.DeepEqualsReadOnlyCollections(other.Versions));
 }
        public bool Equals(DestinyItemQualityBlockDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ItemLevels == input.ItemLevels ||
                     (ItemLevels != null && ItemLevels.SequenceEqual(input.ItemLevels))
                     ) &&
                 (
                     QualityLevel == input.QualityLevel ||
                     (QualityLevel.Equals(input.QualityLevel))
                 ) &&
                 (
                     InfusionCategoryName == input.InfusionCategoryName ||
                     (InfusionCategoryName != null && InfusionCategoryName.Equals(input.InfusionCategoryName))
                 ) &&
                 (
                     InfusionCategoryHash == input.InfusionCategoryHash ||
                     (InfusionCategoryHash.Equals(input.InfusionCategoryHash))
                 ) &&
                 (
                     InfusionCategoryHashes == input.InfusionCategoryHashes ||
                     (InfusionCategoryHashes != null && InfusionCategoryHashes.SequenceEqual(input.InfusionCategoryHashes))
                 ) &&
                 (
                     ProgressionLevelRequirementHash == input.ProgressionLevelRequirementHash ||
                     (ProgressionLevelRequirementHash.Equals(input.ProgressionLevelRequirementHash))
                 ) &&
                 (
                     CurrentVersion == input.CurrentVersion ||
                     (CurrentVersion.Equals(input.CurrentVersion))
                 ) &&
                 (
                     Versions == input.Versions ||
                     (Versions != null && Versions.SequenceEqual(input.Versions))
                 ) &&
                 (
                     DisplayVersionWatermarkIcons == input.DisplayVersionWatermarkIcons ||
                     (DisplayVersionWatermarkIcons != null && DisplayVersionWatermarkIcons.SequenceEqual(input.DisplayVersionWatermarkIcons))
                 ));
        }