public override int GetHashCode() { var hashCode = 473200403; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UserInfoId); hashCode = hashCode * -1521134295 + ReviewId.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hashCode = -2037718333; hashCode = hashCode * -1521134295 + ReviewId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UserName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Body); hashCode = hashCode * -1521134295 + Rating.GetHashCode(); hashCode = hashCode * -1521134295 + ItemId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Item> .Default.GetHashCode(Item); return(hashCode); }
/// <inheritdoc/> protected override async Task <object> CallGitHubApi(DialogContext dc, Octokit.GitHubClient gitHubClient, CancellationToken cancellationToken = default(CancellationToken)) { if (Owner != null && Name != null && Number != null && ReviewId != null) { var ownerValue = Owner.GetValue(dc.State); var nameValue = Name.GetValue(dc.State); var numberValue = Number.GetValue(dc.State); var reviewIdValue = ReviewId.GetValue(dc.State); return(await gitHubClient.PullRequest.Review.Get(ownerValue, nameValue, (Int32)numberValue, (Int64)reviewIdValue).ConfigureAwait(false)); } if (RepositoryId != null && Number != null && ReviewId != null) { var repositoryIdValue = RepositoryId.GetValue(dc.State); var numberValue = Number.GetValue(dc.State); var reviewIdValue = ReviewId.GetValue(dc.State); return(await gitHubClient.PullRequest.Review.Get((Int64)repositoryIdValue, (Int32)numberValue, (Int64)reviewIdValue).ConfigureAwait(false)); } throw new ArgumentNullException("Required [number,reviewId] arguments missing for GitHubClient.PullRequest.Review.Get"); }
public override int GetHashCode() { return(ReviewId.GetHashCode()); }
public override bool Equals(object otherReview) { var newReview = otherReview as Review; return(ReviewId.Equals(newReview.ReviewId)); }