mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 10:55:53 +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,17 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class RepositoryContent : RepositoryContentInfo
|
||||
{
|
||||
public RepositoryContent() { }
|
||||
|
||||
public RepositoryContent(string name, string path, string sha, int size, ContentType type, Uri downloadUrl, Uri url, Uri gitUrl, Uri htmlUrl, string encoding, string encodedContent, string target, Uri submoduleGitUrl)
|
||||
: base(name, path, sha, size, type, downloadUrl, url, gitUrl, htmlUrl)
|
||||
{
|
||||
Encoding = encoding;
|
||||
EncodedContent = encodedContent;
|
||||
Target = target;
|
||||
SubmoduleGitUrl = submoduleGitUrl;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The encoding of the content if this is a file. Typically "base64". Otherwise it's null.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user