add SubmittedAt field to PullRequestReview (#1964)

This commit is contained in:
Ryan Gribble
2019-06-17 07:26:06 +10:00
committed by GitHub
parent 70fe726954
commit 9f005c438e
+7 -1
View File
@@ -15,7 +15,7 @@ namespace Octokit
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 @@ namespace Octokit
PullRequestUrl = pullRequestUrl;
State = state;
AuthorAssociation = authorAssociation;
SubmittedAt = submittedAt;
}
/// <summary>
@@ -73,6 +74,11 @@ namespace Octokit
/// </summary>
public StringEnum<AuthorAssociation> AuthorAssociation { get; protected set; }
/// <summary>
/// The time the review was submitted
/// </summary>
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); }