mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 22:55:12 +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:
@@ -11,6 +11,23 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class GitHubCommitFile
|
||||
{
|
||||
public GitHubCommitFile() { }
|
||||
|
||||
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
|
||||
public GitHubCommitFile(string filename, int additions, int deletions, int changes, string status, string blobUrl, string contentsUrl, string rawUrl, string sha, string patch)
|
||||
{
|
||||
Filename = filename;
|
||||
Additions = additions;
|
||||
Deletions = deletions;
|
||||
Changes = changes;
|
||||
Status = status;
|
||||
BlobUrl = blobUrl;
|
||||
ContentsUrl = contentsUrl;
|
||||
RawUrl = rawUrl;
|
||||
Sha = sha;
|
||||
Patch = patch;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The name of the file
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user