public bool DeepEquals(DestinyReportOffensePgcrRequest?other) { return(other is not null && ReasonCategoryHashes.DeepEqualsListNaive(other.ReasonCategoryHashes) && ReasonHashes.DeepEqualsListNaive(other.ReasonHashes) && OffendingCharacterId == other.OffendingCharacterId); }
public bool Equals(DestinyReportOffensePgcrRequest input) { if (input == null) { return(false); } return (( ReasonCategoryHashes == input.ReasonCategoryHashes || (ReasonCategoryHashes != null && ReasonCategoryHashes.SequenceEqual(input.ReasonCategoryHashes)) ) && ( ReasonHashes == input.ReasonHashes || (ReasonHashes != null && ReasonHashes.SequenceEqual(input.ReasonHashes)) ) && ( OffendingCharacterId == input.OffendingCharacterId || (OffendingCharacterId.Equals(input.OffendingCharacterId)) )); }
public void Update(DestinyReportOffensePgcrRequest?other) { if (other is null) { return; } if (!ReasonCategoryHashes.DeepEqualsListNaive(other.ReasonCategoryHashes)) { ReasonCategoryHashes = other.ReasonCategoryHashes; OnPropertyChanged(nameof(ReasonCategoryHashes)); } if (!ReasonHashes.DeepEqualsListNaive(other.ReasonHashes)) { ReasonHashes = other.ReasonHashes; OnPropertyChanged(nameof(ReasonHashes)); } if (OffendingCharacterId != other.OffendingCharacterId) { OffendingCharacterId = other.OffendingCharacterId; OnPropertyChanged(nameof(OffendingCharacterId)); } }