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
+37 -3
View File
@@ -7,15 +7,49 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Repository
{
public Repository()
{
}
public Repository() { }
public Repository(int id)
{
Id = id;
}
public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, int id, User owner, string name, string fullName, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, int watchersCount, int subscribersCount, string defaultBranch, int openIssuesCount, DateTimeOffset? pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, User organization, Repository parent, Repository source, bool hasIssues, bool hasWiki, bool hasDownloads)
{
Url = url;
HtmlUrl = htmlUrl;
CloneUrl = cloneUrl;
GitUrl = gitUrl;
SshUrl = sshUrl;
SvnUrl = svnUrl;
MirrorUrl = mirrorUrl;
Id = id;
Owner = owner;
Name = name;
FullName = fullName;
Description = description;
Homepage = homepage;
Language = language;
Private = @private;
Fork = fork;
ForksCount = forksCount;
StargazersCount = stargazersCount;
WatchersCount = watchersCount;
SubscribersCount = subscribersCount;
DefaultBranch = defaultBranch;
OpenIssuesCount = openIssuesCount;
PushedAt = pushedAt;
CreatedAt = createdAt;
UpdatedAt = updatedAt;
Permissions = permissions;
Organization = organization;
Parent = parent;
Source = source;
HasIssues = hasIssues;
HasWiki = hasWiki;
HasDownloads = hasDownloads;
}
public string Url { get; protected set; }
public string HtmlUrl { get; protected set; }