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

            return
                ((
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                     ) &&
                 (
                     ChallengeObjectiveHashes == input.ChallengeObjectiveHashes ||
                     (ChallengeObjectiveHashes != null && ChallengeObjectiveHashes.SequenceEqual(input.ChallengeObjectiveHashes))
                 ) &&
                 (
                     ModifierHashes == input.ModifierHashes ||
                     (ModifierHashes != null && ModifierHashes.SequenceEqual(input.ModifierHashes))
                 ) &&
                 (
                     LoadoutRequirementIndex == input.LoadoutRequirementIndex ||
                     (LoadoutRequirementIndex.Equals(input.LoadoutRequirementIndex))
                 ) &&
                 (
                     PhaseHashes == input.PhaseHashes ||
                     (PhaseHashes != null && PhaseHashes.SequenceEqual(input.PhaseHashes))
                 ) &&
                 (
                     BooleanActivityOptions == input.BooleanActivityOptions ||
                     (BooleanActivityOptions != null && BooleanActivityOptions.SequenceEqual(input.BooleanActivityOptions))
                 ));
        }
예제 #2
0
 public bool DeepEquals(DestinyPublicActivityStatus?other)
 {
     return(other is not null &&
            ChallengeObjectiveHashes.DeepEqualsListNaive(other.ChallengeObjectiveHashes) &&
            ModifierHashes.DeepEqualsListNaive(other.ModifierHashes) &&
            RewardTooltipItems.DeepEqualsList(other.RewardTooltipItems));
 }
 public bool DeepEquals(DestinyPublicMilestoneChallengeActivity?other)
 {
     return(other is not null &&
            ActivityHash == other.ActivityHash &&
            ChallengeObjectiveHashes.DeepEqualsListNaive(other.ChallengeObjectiveHashes) &&
            ModifierHashes.DeepEqualsListNaive(other.ModifierHashes) &&
            LoadoutRequirementIndex == other.LoadoutRequirementIndex &&
            PhaseHashes.DeepEqualsListNaive(other.PhaseHashes) &&
            BooleanActivityOptions.DeepEqualsDictionaryNaive(other.BooleanActivityOptions));
 }
        public bool Equals(DestinyPublicActivityStatus input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ChallengeObjectiveHashes == input.ChallengeObjectiveHashes ||
                     (ChallengeObjectiveHashes != null && ChallengeObjectiveHashes.SequenceEqual(input.ChallengeObjectiveHashes))
                     ) &&
                 (
                     ModifierHashes == input.ModifierHashes ||
                     (ModifierHashes != null && ModifierHashes.SequenceEqual(input.ModifierHashes))
                 ) &&
                 (
                     RewardTooltipItems == input.RewardTooltipItems ||
                     (RewardTooltipItems != null && RewardTooltipItems.SequenceEqual(input.RewardTooltipItems))
                 ));
        }
예제 #5
0
 public void Update(DestinyPublicActivityStatus?other)
 {
     if (other is null)
     {
         return;
     }
     if (!ChallengeObjectiveHashes.DeepEqualsListNaive(other.ChallengeObjectiveHashes))
     {
         ChallengeObjectiveHashes = other.ChallengeObjectiveHashes;
         OnPropertyChanged(nameof(ChallengeObjectiveHashes));
     }
     if (!ModifierHashes.DeepEqualsListNaive(other.ModifierHashes))
     {
         ModifierHashes = other.ModifierHashes;
         OnPropertyChanged(nameof(ModifierHashes));
     }
     if (!RewardTooltipItems.DeepEqualsList(other.RewardTooltipItems))
     {
         RewardTooltipItems = other.RewardTooltipItems;
         OnPropertyChanged(nameof(RewardTooltipItems));
     }
 }
 public void Update(DestinyPublicMilestoneChallengeActivity?other)
 {
     if (other is null)
     {
         return;
     }
     if (ActivityHash != other.ActivityHash)
     {
         ActivityHash = other.ActivityHash;
         OnPropertyChanged(nameof(ActivityHash));
     }
     if (!ChallengeObjectiveHashes.DeepEqualsListNaive(other.ChallengeObjectiveHashes))
     {
         ChallengeObjectiveHashes = other.ChallengeObjectiveHashes;
         OnPropertyChanged(nameof(ChallengeObjectiveHashes));
     }
     if (!ModifierHashes.DeepEqualsListNaive(other.ModifierHashes))
     {
         ModifierHashes = other.ModifierHashes;
         OnPropertyChanged(nameof(ModifierHashes));
     }
     if (LoadoutRequirementIndex != other.LoadoutRequirementIndex)
     {
         LoadoutRequirementIndex = other.LoadoutRequirementIndex;
         OnPropertyChanged(nameof(LoadoutRequirementIndex));
     }
     if (!PhaseHashes.DeepEqualsListNaive(other.PhaseHashes))
     {
         PhaseHashes = other.PhaseHashes;
         OnPropertyChanged(nameof(PhaseHashes));
     }
     if (!BooleanActivityOptions.DeepEqualsDictionaryNaive(other.BooleanActivityOptions))
     {
         BooleanActivityOptions = other.BooleanActivityOptions;
         OnPropertyChanged(nameof(BooleanActivityOptions));
     }
 }