Creates CommitEntity for GitHubCommit

Creates the entity that corresponds to the actual payload returned by
the server to represent the Author and Committer of a commit
This commit is contained in:
William Barbosa
2015-09-18 19:03:13 -03:00
parent 69e528889f
commit ce5acfc522
8 changed files with 40 additions and 3 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ namespace Octokit
{
public GitHubCommit() { }
public GitHubCommit(string url, string label, string @ref, string sha, User user, Repository repository, Author author, string commentsUrl, Commit commit, Author committer, string htmlUrl, GitHubCommitStats stats, IReadOnlyList<GitReference> parents, IReadOnlyList<GitHubCommitFile> files)
public GitHubCommit(string url, string label, string @ref, string sha, User user, Repository repository, CommitEntity author, string commentsUrl, Commit commit, CommitEntity committer, string htmlUrl, GitHubCommitStats stats, IReadOnlyList<GitReference> parents, IReadOnlyList<GitHubCommitFile> files)
: base(url, label, @ref, sha, user, repository)
{
Author = author;
@@ -24,13 +24,13 @@ namespace Octokit
Files = files;
}
public Author Author { get; protected set; }
public CommitEntity Author { get; protected set; }
public string CommentsUrl { get; protected set; }
public Commit Commit { get; protected set; }
public Author Committer { get; protected set; }
public CommitEntity Committer { get; protected set; }
public string HtmlUrl { get; protected set; }