Exemplo n.º 1
0
        public bool Equals(DestinyItemResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     CharacterId == input.CharacterId ||
                     (CharacterId.Equals(input.CharacterId))
                     ) &&
                 (
                     Item == input.Item ||
                     (Item != null && Item.Equals(input.Item))
                 ) &&
                 (
                     Instance == input.Instance ||
                     (Instance != null && Instance.Equals(input.Instance))
                 ) &&
                 (
                     Objectives == input.Objectives ||
                     (Objectives != null && Objectives.Equals(input.Objectives))
                 ) &&
                 (
                     Perks == input.Perks ||
                     (Perks != null && Perks.Equals(input.Perks))
                 ) &&
                 (
                     RenderData == input.RenderData ||
                     (RenderData != null && RenderData.Equals(input.RenderData))
                 ) &&
                 (
                     Stats == input.Stats ||
                     (Stats != null && Stats.Equals(input.Stats))
                 ) &&
                 (
                     TalentGrid == input.TalentGrid ||
                     (TalentGrid != null && TalentGrid.Equals(input.TalentGrid))
                 ) &&
                 (
                     Sockets == input.Sockets ||
                     (Sockets != null && Sockets.Equals(input.Sockets))
                 ) &&
                 (
                     ReusablePlugs == input.ReusablePlugs ||
                     (ReusablePlugs != null && ReusablePlugs.Equals(input.ReusablePlugs))
                 ) &&
                 (
                     PlugObjectives == input.PlugObjectives ||
                     (PlugObjectives != null && PlugObjectives.Equals(input.PlugObjectives))
                 ));
        }
Exemplo n.º 2
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))
                 ));
        }