mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user