Beispiel #1
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 #2
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));
     }
 }
        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))
                 ));
        }