public bool DeepEquals(DestinyItemChangeResponse?other)
 {
     return(other is not null &&
            (Item is not null ? Item.DeepEquals(other.Item) : other.Item is null) &&
            AddedInventoryItems.DeepEqualsList(other.AddedInventoryItems) &&
            RemovedInventoryItems.DeepEqualsList(other.RemovedInventoryItems));
 }
Exemplo n.º 2
0
 public void Update(InventoryChangedResponse?other)
 {
     if (other is null)
     {
         return;
     }
     if (!AddedInventoryItems.DeepEqualsList(other.AddedInventoryItems))
     {
         AddedInventoryItems = other.AddedInventoryItems;
         OnPropertyChanged(nameof(AddedInventoryItems));
     }
     if (!RemovedInventoryItems.DeepEqualsList(other.RemovedInventoryItems))
     {
         RemovedInventoryItems = other.RemovedInventoryItems;
         OnPropertyChanged(nameof(RemovedInventoryItems));
     }
 }
Exemplo n.º 3
0
        public bool Equals(InventoryChangedResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     AddedInventoryItems == input.AddedInventoryItems ||
                     (AddedInventoryItems != null && AddedInventoryItems.SequenceEqual(input.AddedInventoryItems))
                     ) &&
                 (
                     RemovedInventoryItems == input.RemovedInventoryItems ||
                     (RemovedInventoryItems != null && RemovedInventoryItems.SequenceEqual(input.RemovedInventoryItems))
                 ));
        }
        public bool Equals(DestinyItemChangeResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Item == input.Item ||
                     (Item != null && Item.Equals(input.Item))
                     ) &&
                 (
                     AddedInventoryItems == input.AddedInventoryItems ||
                     (AddedInventoryItems != null && AddedInventoryItems.SequenceEqual(input.AddedInventoryItems))
                 ) &&
                 (
                     RemovedInventoryItems == input.RemovedInventoryItems ||
                     (RemovedInventoryItems != null && RemovedInventoryItems.SequenceEqual(input.RemovedInventoryItems))
                 ));
        }
Exemplo n.º 5
0
 public bool DeepEquals(InventoryChangedResponse?other)
 {
     return(other is not null &&
            AddedInventoryItems.DeepEqualsList(other.AddedInventoryItems) &&
            RemovedInventoryItems.DeepEqualsList(other.RemovedInventoryItems));
 }