mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
Creates constructors for all Models.Response.
Resolves https://github.com/octokit/octokit.net/issues/677. Removes obscolete properties (gravatar). Makes Models.Response properties all be protected (most were already).
This commit is contained in:
@@ -9,6 +9,21 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class GitHubCommit : GitReference
|
||||
{
|
||||
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)
|
||||
: base(url, label, @ref, sha, user, repository)
|
||||
{
|
||||
Author = author;
|
||||
CommentsUrl = commentsUrl;
|
||||
Commit = commit;
|
||||
Committer = committer;
|
||||
HtmlUrl = htmlUrl;
|
||||
Stats = stats;
|
||||
Parents = parents;
|
||||
Files = files;
|
||||
}
|
||||
|
||||
public Author Author { get; protected set; }
|
||||
|
||||
public string CommentsUrl { get; protected set; }
|
||||
|
||||
Reference in New Issue
Block a user