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:
Micah
2015-01-18 14:11:43 -08:00
parent d75e12c091
commit c3a67ae777
93 changed files with 1052 additions and 84 deletions
@@ -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>