Пример #1
0
        public bool Equals(DestinyVendorResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Vendor == input.Vendor ||
                     (Vendor != null && Vendor.Equals(input.Vendor))
                     ) &&
                 (
                     Categories == input.Categories ||
                     (Categories != null && Categories.Equals(input.Categories))
                 ) &&
                 (
                     Sales == input.Sales ||
                     (Sales != null && Sales.Equals(input.Sales))
                 ) &&
                 (
                     ItemComponents == input.ItemComponents ||
                     (ItemComponents != null && ItemComponents.Equals(input.ItemComponents))
                 ) &&
                 (
                     CurrencyLookups == input.CurrencyLookups ||
                     (CurrencyLookups != null && CurrencyLookups.Equals(input.CurrencyLookups))
                 ) &&
                 (
                     StringVariables == input.StringVariables ||
                     (StringVariables != null && StringVariables.Equals(input.StringVariables))
                 ));
        }
 public bool DeepEquals(DestinyVendorResponse?other)
 {
     return(other is not null &&
            (Vendor is not null ? Vendor.DeepEquals(other.Vendor) : other.Vendor is null) &&
            (Categories is not null ? Categories.DeepEquals(other.Categories) : other.Categories is null) &&
            (Sales is not null ? Sales.DeepEquals(other.Sales) : other.Sales is null) &&
            (ItemComponents is not null ? ItemComponents.DeepEquals(other.ItemComponents) : other.ItemComponents is null) &&
            (CurrencyLookups is not null ? CurrencyLookups.DeepEquals(other.CurrencyLookups) : other.CurrencyLookups is null) &&
            (StringVariables is not null ? StringVariables.DeepEquals(other.StringVariables) : other.StringVariables is null));
 }
Пример #3
0
 public void Update(DestinyVendorsResponse?other)
 {
     if (other is null)
     {
         return;
     }
     if (!VendorGroups.DeepEquals(other.VendorGroups))
     {
         VendorGroups.Update(other.VendorGroups);
         OnPropertyChanged(nameof(VendorGroups));
     }
     if (!Vendors.DeepEquals(other.Vendors))
     {
         Vendors.Update(other.Vendors);
         OnPropertyChanged(nameof(Vendors));
     }
     if (!Categories.DeepEquals(other.Categories))
     {
         Categories.Update(other.Categories);
         OnPropertyChanged(nameof(Categories));
     }
     if (!Sales.DeepEquals(other.Sales))
     {
         Sales.Update(other.Sales);
         OnPropertyChanged(nameof(Sales));
     }
     if (!ItemComponents.DeepEqualsDictionary(other.ItemComponents))
     {
         ItemComponents = other.ItemComponents;
         OnPropertyChanged(nameof(ItemComponents));
     }
     if (!CurrencyLookups.DeepEquals(other.CurrencyLookups))
     {
         CurrencyLookups.Update(other.CurrencyLookups);
         OnPropertyChanged(nameof(CurrencyLookups));
     }
     if (!StringVariables.DeepEquals(other.StringVariables))
     {
         StringVariables.Update(other.StringVariables);
         OnPropertyChanged(nameof(StringVariables));
     }
 }