public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(PullRequestModel)) { return(false); } PullRequestModel other = (PullRequestModel)obj; return(Url == other.Url && HtmlUrl == other.HtmlUrl && DiffUrl == other.DiffUrl && PatchUrl == other.PatchUrl && IssueUrl == other.IssueUrl && Number == other.Number && State == other.State && Title == other.Title && Body == other.Body && BodyHtml == other.BodyHtml && CreatedAt == other.CreatedAt && UpdatedAt == other.UpdatedAt && ClosedAt == other.ClosedAt && MergedAt == other.MergedAt && Head == other.Head && Base == other.Base && User == other.User && Merged == other.Merged && Mergeable == other.Mergeable && MergedBy == other.MergedBy && Comments == other.Comments && Commits == other.Commits && Additions == other.Additions && Deletions == other.Deletions && ChangedFiles == other.ChangedFiles); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(PullRequestModel)) { return(false); } PullRequestModel other = (PullRequestModel)obj; return(Url == other.Url); }