Beispiel #1
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 #2
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 #3
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 #4
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 #5
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 #6
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));
     }
 }