mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +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:
@@ -6,6 +6,19 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class Commit : GitReference
|
||||
{
|
||||
public Commit() { }
|
||||
|
||||
public Commit(string url, string label, string @ref, string sha, User user, Repository repository, string message, SignatureResponse author, SignatureResponse committer, GitReference tree, IEnumerable<GitReference> parents, int commentCount)
|
||||
: base(url, label, @ref, sha, user, repository)
|
||||
{
|
||||
Message = message;
|
||||
Author = author;
|
||||
Committer = committer;
|
||||
Tree = tree;
|
||||
Parents = parents;
|
||||
CommentCount = commentCount;
|
||||
}
|
||||
|
||||
public string Message { get; protected set; }
|
||||
|
||||
public SignatureResponse Author { get; protected set; }
|
||||
|
||||
Reference in New Issue
Block a user