public bool DeepEquals(DestinyActivityLoadoutRequirement?other) { return(other is not null && EquipmentSlotHash == other.EquipmentSlotHash && AllowedEquippedItemHashes.DeepEqualsListNaive(other.AllowedEquippedItemHashes) && AllowedWeaponSubTypes.DeepEqualsListNaive(other.AllowedWeaponSubTypes)); }
public bool Equals(DestinyActivityLoadoutRequirement input) { if (input == null) { return(false); } return (( EquipmentSlotHash == input.EquipmentSlotHash || (EquipmentSlotHash.Equals(input.EquipmentSlotHash)) ) && ( AllowedEquippedItemHashes == input.AllowedEquippedItemHashes || (AllowedEquippedItemHashes != null && AllowedEquippedItemHashes.SequenceEqual(input.AllowedEquippedItemHashes)) ) && ( AllowedWeaponSubTypes == input.AllowedWeaponSubTypes || (AllowedWeaponSubTypes != null && AllowedWeaponSubTypes.SequenceEqual(input.AllowedWeaponSubTypes)) )); }
public void Update(DestinyActivityLoadoutRequirement?other) { if (other is null) { return; } if (EquipmentSlotHash != other.EquipmentSlotHash) { EquipmentSlotHash = other.EquipmentSlotHash; OnPropertyChanged(nameof(EquipmentSlotHash)); } if (!AllowedEquippedItemHashes.DeepEqualsListNaive(other.AllowedEquippedItemHashes)) { AllowedEquippedItemHashes = other.AllowedEquippedItemHashes; OnPropertyChanged(nameof(AllowedEquippedItemHashes)); } if (!AllowedWeaponSubTypes.DeepEqualsListNaive(other.AllowedWeaponSubTypes)) { AllowedWeaponSubTypes = other.AllowedWeaponSubTypes; OnPropertyChanged(nameof(AllowedWeaponSubTypes)); } }