Example #1
0
 public bool DeepEquals(ArtifactTranslationBlock other)
 {
     return(other != null &&
            Arrangements.DeepEqualsReadOnlyCollections(other.Arrangements) &&
            CustomDyes.DeepEqualsReadOnlyCollections(other.CustomDyes) &&
            DefaultDyes.DeepEqualsReadOnlyCollections(other.DefaultDyes) &&
            LockedDyes.DeepEqualsReadOnlyCollections(other.LockedDyes) &&
            HasGeometry == other.HasGeometry &&
            WeaponPatternHash == other.WeaponPatternHash &&
            WeaponPatternIdentifier == other.WeaponPatternIdentifier);
 }
 public bool DeepEquals(DestinyItemTranslationBlockDefinition?other)
 {
     return(other is not null &&
            WeaponPatternIdentifier == other.WeaponPatternIdentifier &&
            WeaponPatternHash == other.WeaponPatternHash &&
            DefaultDyes.DeepEqualsList(other.DefaultDyes) &&
            LockedDyes.DeepEqualsList(other.LockedDyes) &&
            CustomDyes.DeepEqualsList(other.CustomDyes) &&
            Arrangements.DeepEqualsList(other.Arrangements) &&
            HasGeometry == other.HasGeometry);
 }
 public void Update(DestinyItemTranslationBlockDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (WeaponPatternIdentifier != other.WeaponPatternIdentifier)
     {
         WeaponPatternIdentifier = other.WeaponPatternIdentifier;
         OnPropertyChanged(nameof(WeaponPatternIdentifier));
     }
     if (WeaponPatternHash != other.WeaponPatternHash)
     {
         WeaponPatternHash = other.WeaponPatternHash;
         OnPropertyChanged(nameof(WeaponPatternHash));
     }
     if (!DefaultDyes.DeepEqualsList(other.DefaultDyes))
     {
         DefaultDyes = other.DefaultDyes;
         OnPropertyChanged(nameof(DefaultDyes));
     }
     if (!LockedDyes.DeepEqualsList(other.LockedDyes))
     {
         LockedDyes = other.LockedDyes;
         OnPropertyChanged(nameof(LockedDyes));
     }
     if (!CustomDyes.DeepEqualsList(other.CustomDyes))
     {
         CustomDyes = other.CustomDyes;
         OnPropertyChanged(nameof(CustomDyes));
     }
     if (!Arrangements.DeepEqualsList(other.Arrangements))
     {
         Arrangements = other.Arrangements;
         OnPropertyChanged(nameof(Arrangements));
     }
     if (HasGeometry != other.HasGeometry)
     {
         HasGeometry = other.HasGeometry;
         OnPropertyChanged(nameof(HasGeometry));
     }
 }
        public bool Equals(DestinyItemTranslationBlockDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     WeaponPatternIdentifier == input.WeaponPatternIdentifier ||
                     (WeaponPatternIdentifier != null && WeaponPatternIdentifier.Equals(input.WeaponPatternIdentifier))
                     ) &&
                 (
                     WeaponPatternHash == input.WeaponPatternHash ||
                     (WeaponPatternHash.Equals(input.WeaponPatternHash))
                 ) &&
                 (
                     DefaultDyes == input.DefaultDyes ||
                     (DefaultDyes != null && DefaultDyes.SequenceEqual(input.DefaultDyes))
                 ) &&
                 (
                     LockedDyes == input.LockedDyes ||
                     (LockedDyes != null && LockedDyes.SequenceEqual(input.LockedDyes))
                 ) &&
                 (
                     CustomDyes == input.CustomDyes ||
                     (CustomDyes != null && CustomDyes.SequenceEqual(input.CustomDyes))
                 ) &&
                 (
                     Arrangements == input.Arrangements ||
                     (Arrangements != null && Arrangements.SequenceEqual(input.Arrangements))
                 ) &&
                 (
                     HasGeometry == input.HasGeometry ||
                     (HasGeometry != null && HasGeometry.Equals(input.HasGeometry))
                 ));
        }