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 DeepEquals(InventoryChangedResponse?other)
 {
     return(other is not null &&
            AddedInventoryItems.DeepEqualsList(other.AddedInventoryItems) &&
            RemovedInventoryItems.DeepEqualsList(other.RemovedInventoryItems));
 }