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

            return
                ((
                     VendorItemIndex == input.VendorItemIndex ||
                     (VendorItemIndex.Equals(input.VendorItemIndex))
                     ) &&
                 (
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                 ) &&
                 (
                     OverrideStyleItemHash == input.OverrideStyleItemHash ||
                     (OverrideStyleItemHash.Equals(input.OverrideStyleItemHash))
                 ) &&
                 (
                     Quantity == input.Quantity ||
                     (Quantity.Equals(input.Quantity))
                 ) &&
                 (
                     Costs == input.Costs ||
                     (Costs != null && Costs.SequenceEqual(input.Costs))
                 ) &&
                 (
                     OverrideNextRefreshDate == input.OverrideNextRefreshDate ||
                     (OverrideNextRefreshDate != null && OverrideNextRefreshDate.Equals(input.OverrideNextRefreshDate))
                 ) &&
                 (
                     ApiPurchasable == input.ApiPurchasable ||
                     (ApiPurchasable != null && ApiPurchasable.Equals(input.ApiPurchasable))
                 ));
        }
        public bool Equals(DestinyVendorSaleItemComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     SaleStatus == input.SaleStatus ||
                     (SaleStatus != null && SaleStatus.Equals(input.SaleStatus))
                     ) &&
                 (
                     RequiredUnlocks == input.RequiredUnlocks ||
                     (RequiredUnlocks != null && RequiredUnlocks.SequenceEqual(input.RequiredUnlocks))
                 ) &&
                 (
                     UnlockStatuses == input.UnlockStatuses ||
                     (UnlockStatuses != null && UnlockStatuses.SequenceEqual(input.UnlockStatuses))
                 ) &&
                 (
                     FailureIndexes == input.FailureIndexes ||
                     (FailureIndexes != null && FailureIndexes.SequenceEqual(input.FailureIndexes))
                 ) &&
                 (
                     Augments == input.Augments ||
                     (Augments != null && Augments.Equals(input.Augments))
                 ) &&
                 (
                     ItemValueVisibility == input.ItemValueVisibility ||
                     (ItemValueVisibility != null && ItemValueVisibility.SequenceEqual(input.ItemValueVisibility))
                 ) &&
                 (
                     VendorItemIndex == input.VendorItemIndex ||
                     (VendorItemIndex.Equals(input.VendorItemIndex))
                 ) &&
                 (
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                 ) &&
                 (
                     OverrideStyleItemHash == input.OverrideStyleItemHash ||
                     (OverrideStyleItemHash.Equals(input.OverrideStyleItemHash))
                 ) &&
                 (
                     Quantity == input.Quantity ||
                     (Quantity.Equals(input.Quantity))
                 ) &&
                 (
                     Costs == input.Costs ||
                     (Costs != null && Costs.SequenceEqual(input.Costs))
                 ) &&
                 (
                     OverrideNextRefreshDate == input.OverrideNextRefreshDate ||
                     (OverrideNextRefreshDate != null && OverrideNextRefreshDate.Equals(input.OverrideNextRefreshDate))
                 ) &&
                 (
                     ApiPurchasable == input.ApiPurchasable ||
                     (ApiPurchasable != null && ApiPurchasable.Equals(input.ApiPurchasable))
                 ));
        }
Exemplo n.º 3
0
        public bool Equals(DestinyItemComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                     ) &&
                 (
                     ItemInstanceId == input.ItemInstanceId ||
                     (ItemInstanceId.Equals(input.ItemInstanceId))
                 ) &&
                 (
                     Quantity == input.Quantity ||
                     (Quantity.Equals(input.Quantity))
                 ) &&
                 (
                     BindStatus == input.BindStatus ||
                     (BindStatus != null && BindStatus.Equals(input.BindStatus))
                 ) &&
                 (
                     Location == input.Location ||
                     (Location != null && Location.Equals(input.Location))
                 ) &&
                 (
                     BucketHash == input.BucketHash ||
                     (BucketHash.Equals(input.BucketHash))
                 ) &&
                 (
                     TransferStatus == input.TransferStatus ||
                     (TransferStatus != null && TransferStatus.Equals(input.TransferStatus))
                 ) &&
                 (
                     Lockable == input.Lockable ||
                     (Lockable != null && Lockable.Equals(input.Lockable))
                 ) &&
                 (
                     State == input.State ||
                     (State != null && State.Equals(input.State))
                 ) &&
                 (
                     OverrideStyleItemHash == input.OverrideStyleItemHash ||
                     (OverrideStyleItemHash.Equals(input.OverrideStyleItemHash))
                 ) &&
                 (
                     ExpirationDate == input.ExpirationDate ||
                     (ExpirationDate != null && ExpirationDate.Equals(input.ExpirationDate))
                 ) &&
                 (
                     IsWrapper == input.IsWrapper ||
                     (IsWrapper != null && IsWrapper.Equals(input.IsWrapper))
                 ) &&
                 (
                     TooltipNotificationIndexes == input.TooltipNotificationIndexes ||
                     (TooltipNotificationIndexes != null && TooltipNotificationIndexes.SequenceEqual(input.TooltipNotificationIndexes))
                 ) &&
                 (
                     MetricHash == input.MetricHash ||
                     (MetricHash.Equals(input.MetricHash))
                 ) &&
                 (
                     MetricObjective == input.MetricObjective ||
                     (MetricObjective != null && MetricObjective.Equals(input.MetricObjective))
                 ) &&
                 (
                     VersionNumber == input.VersionNumber ||
                     (VersionNumber.Equals(input.VersionNumber))
                 ) &&
                 (
                     ItemValueVisibility == input.ItemValueVisibility ||
                     (ItemValueVisibility != null && ItemValueVisibility.SequenceEqual(input.ItemValueVisibility))
                 ));
        }