コード例 #1
0
        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 void Update(DestinyMilestoneActivity?other)
 {
     if (other is null)
     {
         return;
     }
     if (ActivityHash != other.ActivityHash)
     {
         ActivityHash = other.ActivityHash;
         OnPropertyChanged(nameof(ActivityHash));
     }
     if (ActivityModeHash != other.ActivityModeHash)
     {
         ActivityModeHash = other.ActivityModeHash;
         OnPropertyChanged(nameof(ActivityModeHash));
     }
     if (ActivityModeType != other.ActivityModeType)
     {
         ActivityModeType = other.ActivityModeType;
         OnPropertyChanged(nameof(ActivityModeType));
     }
     if (!ModifierHashes.DeepEqualsListNaive(other.ModifierHashes))
     {
         ModifierHashes = other.ModifierHashes;
         OnPropertyChanged(nameof(ModifierHashes));
     }
     if (!Variants.DeepEqualsList(other.Variants))
     {
         Variants = other.Variants;
         OnPropertyChanged(nameof(Variants));
     }
 }
コード例 #3
0
        public bool Equals(DestinyPublicMilestoneActivity input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                     ) &&
                 (
                     ModifierHashes == input.ModifierHashes ||
                     (ModifierHashes != null && ModifierHashes.SequenceEqual(input.ModifierHashes))
                 ) &&
                 (
                     Variants == input.Variants ||
                     (Variants != null && Variants.SequenceEqual(input.Variants))
                 ) &&
                 (
                     ActivityModeHash == input.ActivityModeHash ||
                     (ActivityModeHash.Equals(input.ActivityModeHash))
                 ) &&
                 (
                     ActivityModeType == input.ActivityModeType ||
                     (ActivityModeType.Equals(input.ActivityModeType))
                 ));
        }
コード例 #4
0
 public bool DeepEquals(DestinyPublicActivityStatus?other)
 {
     return(other is not null &&
            ChallengeObjectiveHashes.DeepEqualsListNaive(other.ChallengeObjectiveHashes) &&
            ModifierHashes.DeepEqualsListNaive(other.ModifierHashes) &&
            RewardTooltipItems.DeepEqualsList(other.RewardTooltipItems));
 }
コード例 #5
0
 public bool DeepEquals(DestinyMilestoneActivity?other)
 {
     return(other is not null &&
            ActivityHash == other.ActivityHash &&
            ActivityModeHash == other.ActivityModeHash &&
            ActivityModeType == other.ActivityModeType &&
            ModifierHashes.DeepEqualsListNaive(other.ModifierHashes) &&
            Variants.DeepEqualsList(other.Variants));
 }
 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));
 }
コード例 #7
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);
 }
コード例 #8
0
        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))
                 ));
        }
コード例 #9
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));
     }
 }
コード例 #11
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))
                 ));
        }
コード例 #12
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));
     }
 }