Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
        public bool Equals(DestinyKioskItem input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                     ) &&
                 (
                     CanAcquire == input.CanAcquire ||
                     (CanAcquire != null && CanAcquire.Equals(input.CanAcquire))
                 ) &&
                 (
                     FailureIndexes == input.FailureIndexes ||
                     (FailureIndexes != null && FailureIndexes.SequenceEqual(input.FailureIndexes))
                 ) &&
                 (
                     FlavorObjective == input.FlavorObjective ||
                     (FlavorObjective != null && FlavorObjective.Equals(input.FlavorObjective))
                 ));
        }
Beispiel #4
0
 public void Update(DestinyKioskItem?other)
 {
     if (other is null)
     {
         return;
     }
     if (Index != other.Index)
     {
         Index = other.Index;
         OnPropertyChanged(nameof(Index));
     }
     if (CanAcquire != other.CanAcquire)
     {
         CanAcquire = other.CanAcquire;
         OnPropertyChanged(nameof(CanAcquire));
     }
     if (!FailureIndexes.DeepEqualsListNaive(other.FailureIndexes))
     {
         FailureIndexes = other.FailureIndexes;
         OnPropertyChanged(nameof(FailureIndexes));
     }
     if (!FlavorObjective.DeepEquals(other.FlavorObjective))
     {
         FlavorObjective.Update(other.FlavorObjective);
         OnPropertyChanged(nameof(FlavorObjective));
     }
 }
Beispiel #5
0
 public bool DeepEquals(DestinyKioskItem?other)
 {
     return(other is not null &&
            Index == other.Index &&
            CanAcquire == other.CanAcquire &&
            FailureIndexes.DeepEqualsListNaive(other.FailureIndexes) &&
            (FlavorObjective is not null ? FlavorObjective.DeepEquals(other.FlavorObjective) : other.FlavorObjective is null));
 }
Beispiel #6
0
 public bool DeepEquals(DestinyVendorSaleItemComponent?other)
 {
     return(other is not null &&
            SaleStatus == other.SaleStatus &&
            RequiredUnlocks.DeepEqualsListNaive(other.RequiredUnlocks) &&
            UnlockStatuses.DeepEqualsList(other.UnlockStatuses) &&
            FailureIndexes.DeepEqualsListNaive(other.FailureIndexes) &&
            Augments == other.Augments &&
            ItemValueVisibility.DeepEqualsListNaive(other.ItemValueVisibility) &&
            VendorItemIndex == other.VendorItemIndex &&
            ItemHash == other.ItemHash &&
            OverrideStyleItemHash == other.OverrideStyleItemHash &&
            Quantity == other.Quantity &&
            Costs.DeepEqualsList(other.Costs) &&
            OverrideNextRefreshDate == other.OverrideNextRefreshDate &&
            ApiPurchasable == other.ApiPurchasable);
 }
Beispiel #7
0
 public void Update(DestinyVendorSaleItemComponent?other)
 {
     if (other is null)
     {
         return;
     }
     if (SaleStatus != other.SaleStatus)
     {
         SaleStatus = other.SaleStatus;
         OnPropertyChanged(nameof(SaleStatus));
     }
     if (!RequiredUnlocks.DeepEqualsListNaive(other.RequiredUnlocks))
     {
         RequiredUnlocks = other.RequiredUnlocks;
         OnPropertyChanged(nameof(RequiredUnlocks));
     }
     if (!UnlockStatuses.DeepEqualsList(other.UnlockStatuses))
     {
         UnlockStatuses = other.UnlockStatuses;
         OnPropertyChanged(nameof(UnlockStatuses));
     }
     if (!FailureIndexes.DeepEqualsListNaive(other.FailureIndexes))
     {
         FailureIndexes = other.FailureIndexes;
         OnPropertyChanged(nameof(FailureIndexes));
     }
     if (Augments != other.Augments)
     {
         Augments = other.Augments;
         OnPropertyChanged(nameof(Augments));
     }
     if (!ItemValueVisibility.DeepEqualsListNaive(other.ItemValueVisibility))
     {
         ItemValueVisibility = other.ItemValueVisibility;
         OnPropertyChanged(nameof(ItemValueVisibility));
     }
     if (VendorItemIndex != other.VendorItemIndex)
     {
         VendorItemIndex = other.VendorItemIndex;
         OnPropertyChanged(nameof(VendorItemIndex));
     }
     if (ItemHash != other.ItemHash)
     {
         ItemHash = other.ItemHash;
         OnPropertyChanged(nameof(ItemHash));
     }
     if (OverrideStyleItemHash != other.OverrideStyleItemHash)
     {
         OverrideStyleItemHash = other.OverrideStyleItemHash;
         OnPropertyChanged(nameof(OverrideStyleItemHash));
     }
     if (Quantity != other.Quantity)
     {
         Quantity = other.Quantity;
         OnPropertyChanged(nameof(Quantity));
     }
     if (!Costs.DeepEqualsList(other.Costs))
     {
         Costs = other.Costs;
         OnPropertyChanged(nameof(Costs));
     }
     if (OverrideNextRefreshDate != other.OverrideNextRefreshDate)
     {
         OverrideNextRefreshDate = other.OverrideNextRefreshDate;
         OnPropertyChanged(nameof(OverrideNextRefreshDate));
     }
     if (ApiPurchasable != other.ApiPurchasable)
     {
         ApiPurchasable = other.ApiPurchasable;
         OnPropertyChanged(nameof(ApiPurchasable));
     }
 }
Beispiel #8
0
 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));
     }
 }
Beispiel #9
0
        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))
                 ));
        }
        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))
                 ));
        }