diff --git a/Octokit/Models/Response/PullRequestReview.cs b/Octokit/Models/Response/PullRequestReview.cs index 4334b2a256..2b46cb8bbb 100644 --- a/Octokit/Models/Response/PullRequestReview.cs +++ b/Octokit/Models/Response/PullRequestReview.cs @@ -15,7 +15,7 @@ public PullRequestReview(long id) Id = id; } - public PullRequestReview(long id, string nodeId, string commitId, User user, string body, string htmlUrl, string pullRequestUrl, PullRequestReviewState state, AuthorAssociation authorAssociation) + public PullRequestReview(long id, string nodeId, string commitId, User user, string body, string htmlUrl, string pullRequestUrl, PullRequestReviewState state, AuthorAssociation authorAssociation, DateTimeOffset submittedAt) { Id = id; NodeId = nodeId; @@ -26,6 +26,7 @@ public PullRequestReview(long id, string nodeId, string commitId, User user, str PullRequestUrl = pullRequestUrl; State = state; AuthorAssociation = authorAssociation; + SubmittedAt = submittedAt; } /// @@ -73,6 +74,11 @@ public PullRequestReview(long id, string nodeId, string commitId, User user, str /// public StringEnum AuthorAssociation { get; protected set; } + /// + /// The time the review was submitted + /// + public DateTimeOffset SubmittedAt { get; protected set; } + internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Id: {0}, State: {1}, User: {2}", Id, State.DebuggerDisplay, User.DebuggerDisplay); }