public bool DeepEquals(VendorItem other) { return(other != null && VendorItemIndex == other.VendorItemIndex && Item.DeepEquals(other.Item) && Quantity == other.Quantity && FailureIndexes.DeepEqualsReadOnlySimpleCollection(other.FailureIndexes) && Currencies.DeepEqualsReadOnlyCollections(other.Currencies) && RefundPolicy == other.RefundPolicy && RefundTimeLimit == other.RefundTimeLimit && CreationLevels.DeepEqualsReadOnlyCollections(other.CreationLevels) && DisplayCategoryIndex == other.DisplayCategoryIndex && CategoryIndex == other.CategoryIndex && OriginalCategoryIndex == other.OriginalCategoryIndex && MinimumLevel == other.MinimumLevel && MaximumLevel == other.MaximumLevel && Action.DeepEquals(other.Action) && DisplayCategory == other.DisplayCategory && InventoryBucket.DeepEquals(other.InventoryBucket) && VisibilityScope == other.VisibilityScope && PurchasableScope == other.PurchasableScope && Exclusivity == other.Exclusivity && IsOffer == other.IsOffer && IsCRM == other.IsCRM && SortValue == other.SortValue && ExpirationTooltip == other.ExpirationTooltip && RedirectToSaleIndexes.DeepEqualsReadOnlySimpleCollection(other.RedirectToSaleIndexes) && SocketOverrides.DeepEqualsReadOnlyCollections(other.SocketOverrides) && IsUnpurchasable == other.IsUnpurchasable && LicenseUnlockHash == other.LicenseUnlockHash && PriceOverrideEnabled == other.PriceOverrideEnabled && RewardAdjustorPointer.DeepEquals(other.RewardAdjustorPointer) && SeedOverride == other.SeedOverride && Weight == other.Weight); }
public bool DeepEquals(DestinyVendorItemDefinition?other) { return(other is not null && VendorItemIndex == other.VendorItemIndex && ItemHash == other.ItemHash && Quantity == other.Quantity && FailureIndexes.DeepEqualsListNaive(other.FailureIndexes) && Currencies.DeepEqualsList(other.Currencies) && RefundPolicy == other.RefundPolicy && RefundTimeLimit == other.RefundTimeLimit && CreationLevels.DeepEqualsList(other.CreationLevels) && DisplayCategoryIndex == other.DisplayCategoryIndex && CategoryIndex == other.CategoryIndex && OriginalCategoryIndex == other.OriginalCategoryIndex && MinimumLevel == other.MinimumLevel && MaximumLevel == other.MaximumLevel && (Action is not null ? Action.DeepEquals(other.Action) : other.Action is null) && DisplayCategory == other.DisplayCategory && InventoryBucketHash == other.InventoryBucketHash && VisibilityScope == other.VisibilityScope && PurchasableScope == other.PurchasableScope && Exclusivity == other.Exclusivity && IsOffer == other.IsOffer && IsCrm == other.IsCrm && SortValue == other.SortValue && ExpirationTooltip == other.ExpirationTooltip && RedirectToSaleIndexes.DeepEqualsListNaive(other.RedirectToSaleIndexes) && SocketOverrides.DeepEqualsList(other.SocketOverrides) && Unpurchasable == other.Unpurchasable); }
public void Update(DestinyVendorItemDefinition?other) { if (other is null) { return; } if (VendorItemIndex != other.VendorItemIndex) { VendorItemIndex = other.VendorItemIndex; OnPropertyChanged(nameof(VendorItemIndex)); } if (ItemHash != other.ItemHash) { ItemHash = other.ItemHash; OnPropertyChanged(nameof(ItemHash)); } if (Quantity != other.Quantity) { Quantity = other.Quantity; OnPropertyChanged(nameof(Quantity)); } if (!FailureIndexes.DeepEqualsListNaive(other.FailureIndexes)) { FailureIndexes = other.FailureIndexes; OnPropertyChanged(nameof(FailureIndexes)); } if (!Currencies.DeepEqualsList(other.Currencies)) { Currencies = other.Currencies; OnPropertyChanged(nameof(Currencies)); } if (RefundPolicy != other.RefundPolicy) { RefundPolicy = other.RefundPolicy; OnPropertyChanged(nameof(RefundPolicy)); } if (RefundTimeLimit != other.RefundTimeLimit) { RefundTimeLimit = other.RefundTimeLimit; OnPropertyChanged(nameof(RefundTimeLimit)); } if (!CreationLevels.DeepEqualsList(other.CreationLevels)) { CreationLevels = other.CreationLevels; OnPropertyChanged(nameof(CreationLevels)); } if (DisplayCategoryIndex != other.DisplayCategoryIndex) { DisplayCategoryIndex = other.DisplayCategoryIndex; OnPropertyChanged(nameof(DisplayCategoryIndex)); } if (CategoryIndex != other.CategoryIndex) { CategoryIndex = other.CategoryIndex; OnPropertyChanged(nameof(CategoryIndex)); } if (OriginalCategoryIndex != other.OriginalCategoryIndex) { OriginalCategoryIndex = other.OriginalCategoryIndex; OnPropertyChanged(nameof(OriginalCategoryIndex)); } if (MinimumLevel != other.MinimumLevel) { MinimumLevel = other.MinimumLevel; OnPropertyChanged(nameof(MinimumLevel)); } if (MaximumLevel != other.MaximumLevel) { MaximumLevel = other.MaximumLevel; OnPropertyChanged(nameof(MaximumLevel)); } if (!Action.DeepEquals(other.Action)) { Action.Update(other.Action); OnPropertyChanged(nameof(Action)); } if (DisplayCategory != other.DisplayCategory) { DisplayCategory = other.DisplayCategory; OnPropertyChanged(nameof(DisplayCategory)); } if (InventoryBucketHash != other.InventoryBucketHash) { InventoryBucketHash = other.InventoryBucketHash; OnPropertyChanged(nameof(InventoryBucketHash)); } if (VisibilityScope != other.VisibilityScope) { VisibilityScope = other.VisibilityScope; OnPropertyChanged(nameof(VisibilityScope)); } if (PurchasableScope != other.PurchasableScope) { PurchasableScope = other.PurchasableScope; OnPropertyChanged(nameof(PurchasableScope)); } if (Exclusivity != other.Exclusivity) { Exclusivity = other.Exclusivity; OnPropertyChanged(nameof(Exclusivity)); } if (IsOffer != other.IsOffer) { IsOffer = other.IsOffer; OnPropertyChanged(nameof(IsOffer)); } if (IsCrm != other.IsCrm) { IsCrm = other.IsCrm; OnPropertyChanged(nameof(IsCrm)); } if (SortValue != other.SortValue) { SortValue = other.SortValue; OnPropertyChanged(nameof(SortValue)); } if (ExpirationTooltip != other.ExpirationTooltip) { ExpirationTooltip = other.ExpirationTooltip; OnPropertyChanged(nameof(ExpirationTooltip)); } if (!RedirectToSaleIndexes.DeepEqualsListNaive(other.RedirectToSaleIndexes)) { RedirectToSaleIndexes = other.RedirectToSaleIndexes; OnPropertyChanged(nameof(RedirectToSaleIndexes)); } if (!SocketOverrides.DeepEqualsList(other.SocketOverrides)) { SocketOverrides = other.SocketOverrides; OnPropertyChanged(nameof(SocketOverrides)); } if (Unpurchasable != other.Unpurchasable) { Unpurchasable = other.Unpurchasable; OnPropertyChanged(nameof(Unpurchasable)); } }
public bool Equals(DestinyVendorItemDefinition input) { if (input == null) { return(false); } return (( VendorItemIndex == input.VendorItemIndex || (VendorItemIndex.Equals(input.VendorItemIndex)) ) && ( ItemHash == input.ItemHash || (ItemHash.Equals(input.ItemHash)) ) && ( Quantity == input.Quantity || (Quantity.Equals(input.Quantity)) ) && ( FailureIndexes == input.FailureIndexes || (FailureIndexes != null && FailureIndexes.SequenceEqual(input.FailureIndexes)) ) && ( Currencies == input.Currencies || (Currencies != null && Currencies.SequenceEqual(input.Currencies)) ) && ( RefundPolicy == input.RefundPolicy || (RefundPolicy != null && RefundPolicy.Equals(input.RefundPolicy)) ) && ( RefundTimeLimit == input.RefundTimeLimit || (RefundTimeLimit.Equals(input.RefundTimeLimit)) ) && ( CreationLevels == input.CreationLevels || (CreationLevels != null && CreationLevels.SequenceEqual(input.CreationLevels)) ) && ( DisplayCategoryIndex == input.DisplayCategoryIndex || (DisplayCategoryIndex.Equals(input.DisplayCategoryIndex)) ) && ( CategoryIndex == input.CategoryIndex || (CategoryIndex.Equals(input.CategoryIndex)) ) && ( OriginalCategoryIndex == input.OriginalCategoryIndex || (OriginalCategoryIndex.Equals(input.OriginalCategoryIndex)) ) && ( MinimumLevel == input.MinimumLevel || (MinimumLevel.Equals(input.MinimumLevel)) ) && ( MaximumLevel == input.MaximumLevel || (MaximumLevel.Equals(input.MaximumLevel)) ) && ( Action == input.Action || (Action != null && Action.Equals(input.Action)) ) && ( DisplayCategory == input.DisplayCategory || (DisplayCategory != null && DisplayCategory.Equals(input.DisplayCategory)) ) && ( InventoryBucketHash == input.InventoryBucketHash || (InventoryBucketHash.Equals(input.InventoryBucketHash)) ) && ( VisibilityScope == input.VisibilityScope || (VisibilityScope != null && VisibilityScope.Equals(input.VisibilityScope)) ) && ( PurchasableScope == input.PurchasableScope || (PurchasableScope != null && PurchasableScope.Equals(input.PurchasableScope)) ) && ( Exclusivity == input.Exclusivity || (Exclusivity != null && Exclusivity.Equals(input.Exclusivity)) ) && ( IsOffer == input.IsOffer || (IsOffer != null && IsOffer.Equals(input.IsOffer)) ) && ( IsCrm == input.IsCrm || (IsCrm != null && IsCrm.Equals(input.IsCrm)) ) && ( SortValue == input.SortValue || (SortValue.Equals(input.SortValue)) ) && ( ExpirationTooltip == input.ExpirationTooltip || (ExpirationTooltip != null && ExpirationTooltip.Equals(input.ExpirationTooltip)) ) && ( RedirectToSaleIndexes == input.RedirectToSaleIndexes || (RedirectToSaleIndexes != null && RedirectToSaleIndexes.SequenceEqual(input.RedirectToSaleIndexes)) ) && ( SocketOverrides == input.SocketOverrides || (SocketOverrides != null && SocketOverrides.SequenceEqual(input.SocketOverrides)) ) && ( Unpurchasable == input.Unpurchasable || (Unpurchasable != null && Unpurchasable.Equals(input.Unpurchasable)) )); }