public bool Equals(DestinyMilestoneChallengeActivity input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                     ) &&
                 (
                     Challenges == input.Challenges ||
                     (Challenges != null && Challenges.SequenceEqual(input.Challenges))
                 ) &&
                 (
                     ModifierHashes == input.ModifierHashes ||
                     (ModifierHashes != null && ModifierHashes.SequenceEqual(input.ModifierHashes))
                 ) &&
                 (
                     BooleanActivityOptions == input.BooleanActivityOptions ||
                     (BooleanActivityOptions != null && BooleanActivityOptions.SequenceEqual(input.BooleanActivityOptions))
                 ) &&
                 (
                     LoadoutRequirementIndex == input.LoadoutRequirementIndex ||
                     (LoadoutRequirementIndex.Equals(input.LoadoutRequirementIndex))
                 ) &&
                 (
                     Phases == input.Phases ||
                     (Phases != null && Phases.SequenceEqual(input.Phases))
                 ));
        }
 public bool DeepEquals(DestinyMilestoneChallengeActivity?other)
 {
     return(other is not null &&
            ActivityHash == other.ActivityHash &&
            Challenges.DeepEqualsList(other.Challenges) &&
            ModifierHashes.DeepEqualsListNaive(other.ModifierHashes) &&
            BooleanActivityOptions.DeepEqualsDictionaryNaive(other.BooleanActivityOptions) &&
            LoadoutRequirementIndex == other.LoadoutRequirementIndex &&
            Phases.DeepEqualsList(other.Phases));
 }
Example #3
0
 public bool DeepEquals(DestinyActivity?other)
 {
     return(other is not null &&
            ActivityHash == other.ActivityHash &&
            IsNew == other.IsNew &&
            CanLead == other.CanLead &&
            CanJoin == other.CanJoin &&
            IsCompleted == other.IsCompleted &&
            IsVisible == other.IsVisible &&
            DisplayLevel == other.DisplayLevel &&
            RecommendedLight == other.RecommendedLight &&
            DifficultyTier == other.DifficultyTier &&
            Challenges.DeepEqualsList(other.Challenges) &&
            ModifierHashes.DeepEqualsListNaive(other.ModifierHashes) &&
            BooleanActivityOptions.DeepEqualsDictionaryNaive(other.BooleanActivityOptions) &&
            LoadoutRequirementIndex == other.LoadoutRequirementIndex);
 }
 public void Update(DestinyMilestoneChallengeActivity?other)
 {
     if (other is null)
     {
         return;
     }
     if (ActivityHash != other.ActivityHash)
     {
         ActivityHash = other.ActivityHash;
         OnPropertyChanged(nameof(ActivityHash));
     }
     if (!Challenges.DeepEqualsList(other.Challenges))
     {
         Challenges = other.Challenges;
         OnPropertyChanged(nameof(Challenges));
     }
     if (!ModifierHashes.DeepEqualsListNaive(other.ModifierHashes))
     {
         ModifierHashes = other.ModifierHashes;
         OnPropertyChanged(nameof(ModifierHashes));
     }
     if (!BooleanActivityOptions.DeepEqualsDictionaryNaive(other.BooleanActivityOptions))
     {
         BooleanActivityOptions = other.BooleanActivityOptions;
         OnPropertyChanged(nameof(BooleanActivityOptions));
     }
     if (LoadoutRequirementIndex != other.LoadoutRequirementIndex)
     {
         LoadoutRequirementIndex = other.LoadoutRequirementIndex;
         OnPropertyChanged(nameof(LoadoutRequirementIndex));
     }
     if (!Phases.DeepEqualsList(other.Phases))
     {
         Phases = other.Phases;
         OnPropertyChanged(nameof(Phases));
     }
 }
Example #5
0
        public bool Equals(DestinyActivity input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                     ) &&
                 (
                     IsNew == input.IsNew ||
                     (IsNew != null && IsNew.Equals(input.IsNew))
                 ) &&
                 (
                     CanLead == input.CanLead ||
                     (CanLead != null && CanLead.Equals(input.CanLead))
                 ) &&
                 (
                     CanJoin == input.CanJoin ||
                     (CanJoin != null && CanJoin.Equals(input.CanJoin))
                 ) &&
                 (
                     IsCompleted == input.IsCompleted ||
                     (IsCompleted != null && IsCompleted.Equals(input.IsCompleted))
                 ) &&
                 (
                     IsVisible == input.IsVisible ||
                     (IsVisible != null && IsVisible.Equals(input.IsVisible))
                 ) &&
                 (
                     DisplayLevel == input.DisplayLevel ||
                     (DisplayLevel.Equals(input.DisplayLevel))
                 ) &&
                 (
                     RecommendedLight == input.RecommendedLight ||
                     (RecommendedLight.Equals(input.RecommendedLight))
                 ) &&
                 (
                     DifficultyTier == input.DifficultyTier ||
                     (DifficultyTier != null && DifficultyTier.Equals(input.DifficultyTier))
                 ) &&
                 (
                     Challenges == input.Challenges ||
                     (Challenges != null && Challenges.SequenceEqual(input.Challenges))
                 ) &&
                 (
                     ModifierHashes == input.ModifierHashes ||
                     (ModifierHashes != null && ModifierHashes.SequenceEqual(input.ModifierHashes))
                 ) &&
                 (
                     BooleanActivityOptions == input.BooleanActivityOptions ||
                     (BooleanActivityOptions != null && BooleanActivityOptions.SequenceEqual(input.BooleanActivityOptions))
                 ) &&
                 (
                     LoadoutRequirementIndex == input.LoadoutRequirementIndex ||
                     (LoadoutRequirementIndex.Equals(input.LoadoutRequirementIndex))
                 ));
        }
Example #6
0
 public void Update(DestinyActivity?other)
 {
     if (other is null)
     {
         return;
     }
     if (ActivityHash != other.ActivityHash)
     {
         ActivityHash = other.ActivityHash;
         OnPropertyChanged(nameof(ActivityHash));
     }
     if (IsNew != other.IsNew)
     {
         IsNew = other.IsNew;
         OnPropertyChanged(nameof(IsNew));
     }
     if (CanLead != other.CanLead)
     {
         CanLead = other.CanLead;
         OnPropertyChanged(nameof(CanLead));
     }
     if (CanJoin != other.CanJoin)
     {
         CanJoin = other.CanJoin;
         OnPropertyChanged(nameof(CanJoin));
     }
     if (IsCompleted != other.IsCompleted)
     {
         IsCompleted = other.IsCompleted;
         OnPropertyChanged(nameof(IsCompleted));
     }
     if (IsVisible != other.IsVisible)
     {
         IsVisible = other.IsVisible;
         OnPropertyChanged(nameof(IsVisible));
     }
     if (DisplayLevel != other.DisplayLevel)
     {
         DisplayLevel = other.DisplayLevel;
         OnPropertyChanged(nameof(DisplayLevel));
     }
     if (RecommendedLight != other.RecommendedLight)
     {
         RecommendedLight = other.RecommendedLight;
         OnPropertyChanged(nameof(RecommendedLight));
     }
     if (DifficultyTier != other.DifficultyTier)
     {
         DifficultyTier = other.DifficultyTier;
         OnPropertyChanged(nameof(DifficultyTier));
     }
     if (!Challenges.DeepEqualsList(other.Challenges))
     {
         Challenges = other.Challenges;
         OnPropertyChanged(nameof(Challenges));
     }
     if (!ModifierHashes.DeepEqualsListNaive(other.ModifierHashes))
     {
         ModifierHashes = other.ModifierHashes;
         OnPropertyChanged(nameof(ModifierHashes));
     }
     if (!BooleanActivityOptions.DeepEqualsDictionaryNaive(other.BooleanActivityOptions))
     {
         BooleanActivityOptions = other.BooleanActivityOptions;
         OnPropertyChanged(nameof(BooleanActivityOptions));
     }
     if (LoadoutRequirementIndex != other.LoadoutRequirementIndex)
     {
         LoadoutRequirementIndex = other.LoadoutRequirementIndex;
         OnPropertyChanged(nameof(LoadoutRequirementIndex));
     }
 }