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

            return
                ((
                     VendorGroups == input.VendorGroups ||
                     (VendorGroups != null && VendorGroups.Equals(input.VendorGroups))
                     ) &&
                 (
                     Vendors == input.Vendors ||
                     (Vendors != null && Vendors.Equals(input.Vendors))
                 ) &&
                 (
                     Categories == input.Categories ||
                     (Categories != null && Categories.Equals(input.Categories))
                 ) &&
                 (
                     Sales == input.Sales ||
                     (Sales != null && Sales.Equals(input.Sales))
                 ) &&
                 (
                     StringVariables == input.StringVariables ||
                     (StringVariables != null && StringVariables.Equals(input.StringVariables))
                 ));
        }
 public void Update(DestinyPublicVendorsResponse?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 (!StringVariables.DeepEquals(other.StringVariables))
     {
         StringVariables.Update(other.StringVariables);
         OnPropertyChanged(nameof(StringVariables));
     }
 }
 public bool DeepEquals(DestinyPublicVendorsResponse?other)
 {
     return(other is not null &&
            (VendorGroups is not null ? VendorGroups.DeepEquals(other.VendorGroups) : other.VendorGroups is null) &&
            (Vendors is not null ? Vendors.DeepEquals(other.Vendors) : other.Vendors 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) &&
            (StringVariables is not null ? StringVariables.DeepEquals(other.StringVariables) : other.StringVariables is null));
 }
Пример #4
0
 public bool DeepEquals(DestinyVendorsResponse?other)
 {
     return(other is not null &&
            (VendorGroups is not null ? VendorGroups.DeepEquals(other.VendorGroups) : other.VendorGroups is null) &&
            (Vendors is not null ? Vendors.DeepEquals(other.Vendors) : other.Vendors 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.DeepEqualsDictionary(other.ItemComponents) &&
            (CurrencyLookups is not null ? CurrencyLookups.DeepEquals(other.CurrencyLookups) : other.CurrencyLookups is null) &&
            (StringVariables is not null ? StringVariables.DeepEquals(other.StringVariables) : other.StringVariables is null));
 }
Пример #5
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));
     }
 }
Пример #6
0
        public bool Equals(DestinyVendorsResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     VendorGroups == input.VendorGroups ||
                     (VendorGroups != null && VendorGroups.Equals(input.VendorGroups))
                     ) &&
                 (
                     Vendors == input.Vendors ||
                     (Vendors != null && Vendors.Equals(input.Vendors))
                 ) &&
                 (
                     Categories == input.Categories ||
                     (Categories != null && Categories.Equals(input.Categories))
                 ) &&
                 (
                     Sales == input.Sales ||
                     (Sales != null && Sales.Equals(input.Sales))
                 ) &&
                 (
                     ItemComponents == input.ItemComponents ||
                     (ItemComponents != null && ItemComponents.SequenceEqual(input.ItemComponents))
                 ) &&
                 (
                     CurrencyLookups == input.CurrencyLookups ||
                     (CurrencyLookups != null && CurrencyLookups.Equals(input.CurrencyLookups))
                 ) &&
                 (
                     StringVariables == input.StringVariables ||
                     (StringVariables != null && StringVariables.Equals(input.StringVariables))
                 ));
        }