コード例 #1
0
 public bool DeepEquals(VendorCategory other)
 {
     return(other != null &&
            BuyStringOverride == other.BuyStringOverride &&
            CategoryHash == other.CategoryHash &&
            CategoryIndex == other.CategoryIndex &&
            DisabledDescription == other.DisabledDescription &&
            HideFromRegularPurchase == other.HideFromRegularPurchase &&
            HideIfNoCurrency == other.HideIfNoCurrency &&
            IsDisplayOnly == other.IsDisplayOnly &&
            IsPreview == other.IsPreview &&
            QuantityAvailable == other.QuantityAvailable &&
            ResetIntervalMinutesOverride == other.ResetIntervalMinutesOverride &&
            ResetOffsetMinutesOverride == other.ResetOffsetMinutesOverride &&
            ShowUnavailableItems == other.ShowUnavailableItems &&
            SortValue == other.SortValue &&
            VendorItemIndexes.DeepEqualsReadOnlySimpleCollection(other.VendorItemIndexes) &&
            DisplayTitle == other.DisplayTitle &&
            Overlay.DeepEquals(other.Overlay));
 }
コード例 #2
0
 public bool DeepEquals(DestinyVendorCategoryEntryDefinition?other)
 {
     return(other is not null &&
            CategoryIndex == other.CategoryIndex &&
            SortValue == other.SortValue &&
            CategoryHash == other.CategoryHash &&
            QuantityAvailable == other.QuantityAvailable &&
            ShowUnavailableItems == other.ShowUnavailableItems &&
            HideIfNoCurrency == other.HideIfNoCurrency &&
            HideFromRegularPurchase == other.HideFromRegularPurchase &&
            BuyStringOverride == other.BuyStringOverride &&
            DisabledDescription == other.DisabledDescription &&
            DisplayTitle == other.DisplayTitle &&
            (Overlay is not null ? Overlay.DeepEquals(other.Overlay) : other.Overlay is null) &&
            VendorItemIndexes.DeepEqualsListNaive(other.VendorItemIndexes) &&
            IsPreview == other.IsPreview &&
            IsDisplayOnly == other.IsDisplayOnly &&
            ResetIntervalMinutesOverride == other.ResetIntervalMinutesOverride &&
            ResetOffsetMinutesOverride == other.ResetOffsetMinutesOverride);
 }
コード例 #3
0
 public void Update(DestinyVendorCategoryEntryDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (CategoryIndex != other.CategoryIndex)
     {
         CategoryIndex = other.CategoryIndex;
         OnPropertyChanged(nameof(CategoryIndex));
     }
     if (SortValue != other.SortValue)
     {
         SortValue = other.SortValue;
         OnPropertyChanged(nameof(SortValue));
     }
     if (CategoryHash != other.CategoryHash)
     {
         CategoryHash = other.CategoryHash;
         OnPropertyChanged(nameof(CategoryHash));
     }
     if (QuantityAvailable != other.QuantityAvailable)
     {
         QuantityAvailable = other.QuantityAvailable;
         OnPropertyChanged(nameof(QuantityAvailable));
     }
     if (ShowUnavailableItems != other.ShowUnavailableItems)
     {
         ShowUnavailableItems = other.ShowUnavailableItems;
         OnPropertyChanged(nameof(ShowUnavailableItems));
     }
     if (HideIfNoCurrency != other.HideIfNoCurrency)
     {
         HideIfNoCurrency = other.HideIfNoCurrency;
         OnPropertyChanged(nameof(HideIfNoCurrency));
     }
     if (HideFromRegularPurchase != other.HideFromRegularPurchase)
     {
         HideFromRegularPurchase = other.HideFromRegularPurchase;
         OnPropertyChanged(nameof(HideFromRegularPurchase));
     }
     if (BuyStringOverride != other.BuyStringOverride)
     {
         BuyStringOverride = other.BuyStringOverride;
         OnPropertyChanged(nameof(BuyStringOverride));
     }
     if (DisabledDescription != other.DisabledDescription)
     {
         DisabledDescription = other.DisabledDescription;
         OnPropertyChanged(nameof(DisabledDescription));
     }
     if (DisplayTitle != other.DisplayTitle)
     {
         DisplayTitle = other.DisplayTitle;
         OnPropertyChanged(nameof(DisplayTitle));
     }
     if (!Overlay.DeepEquals(other.Overlay))
     {
         Overlay.Update(other.Overlay);
         OnPropertyChanged(nameof(Overlay));
     }
     if (!VendorItemIndexes.DeepEqualsListNaive(other.VendorItemIndexes))
     {
         VendorItemIndexes = other.VendorItemIndexes;
         OnPropertyChanged(nameof(VendorItemIndexes));
     }
     if (IsPreview != other.IsPreview)
     {
         IsPreview = other.IsPreview;
         OnPropertyChanged(nameof(IsPreview));
     }
     if (IsDisplayOnly != other.IsDisplayOnly)
     {
         IsDisplayOnly = other.IsDisplayOnly;
         OnPropertyChanged(nameof(IsDisplayOnly));
     }
     if (ResetIntervalMinutesOverride != other.ResetIntervalMinutesOverride)
     {
         ResetIntervalMinutesOverride = other.ResetIntervalMinutesOverride;
         OnPropertyChanged(nameof(ResetIntervalMinutesOverride));
     }
     if (ResetOffsetMinutesOverride != other.ResetOffsetMinutesOverride)
     {
         ResetOffsetMinutesOverride = other.ResetOffsetMinutesOverride;
         OnPropertyChanged(nameof(ResetOffsetMinutesOverride));
     }
 }
コード例 #4
0
        public bool Equals(DestinyVendorCategoryEntryDefinition input)
        {
            if (input == null) return false;

            return
                (
                    CategoryIndex == input.CategoryIndex ||
                    (CategoryIndex.Equals(input.CategoryIndex))
                ) &&
                (
                    SortValue == input.SortValue ||
                    (SortValue.Equals(input.SortValue))
                ) &&
                (
                    CategoryHash == input.CategoryHash ||
                    (CategoryHash.Equals(input.CategoryHash))
                ) &&
                (
                    QuantityAvailable == input.QuantityAvailable ||
                    (QuantityAvailable.Equals(input.QuantityAvailable))
                ) &&
                (
                    ShowUnavailableItems == input.ShowUnavailableItems ||
                    (ShowUnavailableItems != null && ShowUnavailableItems.Equals(input.ShowUnavailableItems))
                ) &&
                (
                    HideIfNoCurrency == input.HideIfNoCurrency ||
                    (HideIfNoCurrency != null && HideIfNoCurrency.Equals(input.HideIfNoCurrency))
                ) &&
                (
                    HideFromRegularPurchase == input.HideFromRegularPurchase ||
                    (HideFromRegularPurchase != null && HideFromRegularPurchase.Equals(input.HideFromRegularPurchase))
                ) &&
                (
                    BuyStringOverride == input.BuyStringOverride ||
                    (BuyStringOverride != null && BuyStringOverride.Equals(input.BuyStringOverride))
                ) &&
                (
                    DisabledDescription == input.DisabledDescription ||
                    (DisabledDescription != null && DisabledDescription.Equals(input.DisabledDescription))
                ) &&
                (
                    DisplayTitle == input.DisplayTitle ||
                    (DisplayTitle != null && DisplayTitle.Equals(input.DisplayTitle))
                ) &&
                (
                    Overlay == input.Overlay ||
                    (Overlay != null && Overlay.Equals(input.Overlay))
                ) &&
                (
                    VendorItemIndexes == input.VendorItemIndexes ||
                    (VendorItemIndexes != null && VendorItemIndexes.SequenceEqual(input.VendorItemIndexes))
                ) &&
                (
                    IsPreview == input.IsPreview ||
                    (IsPreview != null && IsPreview.Equals(input.IsPreview))
                ) &&
                (
                    IsDisplayOnly == input.IsDisplayOnly ||
                    (IsDisplayOnly != null && IsDisplayOnly.Equals(input.IsDisplayOnly))
                ) &&
                (
                    ResetIntervalMinutesOverride == input.ResetIntervalMinutesOverride ||
                    (ResetIntervalMinutesOverride.Equals(input.ResetIntervalMinutesOverride))
                ) &&
                (
                    ResetOffsetMinutesOverride == input.ResetOffsetMinutesOverride ||
                    (ResetOffsetMinutesOverride.Equals(input.ResetOffsetMinutesOverride))
                ) ;
        }