예제 #1
0
        public bool Equals(DestinyPresentationNodeComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     State == input.State ||
                     (State != null && State.Equals(input.State))
                     ) &&
                 (
                     Objective == input.Objective ||
                     (Objective != null && Objective.Equals(input.Objective))
                 ) &&
                 (
                     ProgressValue == input.ProgressValue ||
                     (ProgressValue.Equals(input.ProgressValue))
                 ) &&
                 (
                     CompletionValue == input.CompletionValue ||
                     (CompletionValue.Equals(input.CompletionValue))
                 ) &&
                 (
                     RecordCategoryScore == input.RecordCategoryScore ||
                     (RecordCategoryScore.Equals(input.RecordCategoryScore))
                 ));
        }
예제 #2
0
        public bool Equals(DestinyObjectiveProgress input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ObjectiveHash == input.ObjectiveHash ||
                     (ObjectiveHash.Equals(input.ObjectiveHash))
                     ) &&
                 (
                     DestinationHash == input.DestinationHash ||
                     (DestinationHash.Equals(input.DestinationHash))
                 ) &&
                 (
                     ActivityHash == input.ActivityHash ||
                     (ActivityHash.Equals(input.ActivityHash))
                 ) &&
                 (
                     Progress == input.Progress ||
                     (Progress.Equals(input.Progress))
                 ) &&
                 (
                     CompletionValue == input.CompletionValue ||
                     (CompletionValue.Equals(input.CompletionValue))
                 ) &&
                 (
                     Complete == input.Complete ||
                     (Complete != null && Complete.Equals(input.Complete))
                 ) &&
                 (
                     Visible == input.Visible ||
                     (Visible != null && Visible.Equals(input.Visible))
                 ));
        }
예제 #3
0
        public bool Equals(DestinyObjectiveDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     CompletionValue == input.CompletionValue ||
                     (CompletionValue.Equals(input.CompletionValue))
                 ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ) &&
                 (
                     LocationHash == input.LocationHash ||
                     (LocationHash.Equals(input.LocationHash))
                 ) &&
                 (
                     AllowNegativeValue == input.AllowNegativeValue ||
                     (AllowNegativeValue != null && AllowNegativeValue.Equals(input.AllowNegativeValue))
                 ) &&
                 (
                     AllowValueChangeWhenCompleted == input.AllowValueChangeWhenCompleted ||
                     (AllowValueChangeWhenCompleted != null && AllowValueChangeWhenCompleted.Equals(input.AllowValueChangeWhenCompleted))
                 ) &&
                 (
                     IsCountingDownward == input.IsCountingDownward ||
                     (IsCountingDownward != null && IsCountingDownward.Equals(input.IsCountingDownward))
                 ) &&
                 (
                     ValueStyle == input.ValueStyle ||
                     (ValueStyle != null && ValueStyle.Equals(input.ValueStyle))
                 ) &&
                 (
                     ProgressDescription == input.ProgressDescription ||
                     (ProgressDescription != null && ProgressDescription.Equals(input.ProgressDescription))
                 ) &&
                 (
                     Perks == input.Perks ||
                     (Perks != null && Perks.Equals(input.Perks))
                 ) &&
                 (
                     Stats == input.Stats ||
                     (Stats != null && Stats.Equals(input.Stats))
                 ) &&
                 (
                     MinimumVisibilityThreshold == input.MinimumVisibilityThreshold ||
                     (MinimumVisibilityThreshold.Equals(input.MinimumVisibilityThreshold))
                 ) &&
                 (
                     AllowOvercompletion == input.AllowOvercompletion ||
                     (AllowOvercompletion != null && AllowOvercompletion.Equals(input.AllowOvercompletion))
                 ) &&
                 (
                     ShowValueOnComplete == input.ShowValueOnComplete ||
                     (ShowValueOnComplete != null && ShowValueOnComplete.Equals(input.ShowValueOnComplete))
                 ) &&
                 (
                     CompletedValueStyle == input.CompletedValueStyle ||
                     (CompletedValueStyle != null && CompletedValueStyle.Equals(input.CompletedValueStyle))
                 ) &&
                 (
                     InProgressValueStyle == input.InProgressValueStyle ||
                     (InProgressValueStyle != null && InProgressValueStyle.Equals(input.InProgressValueStyle))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }