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
+7 -8
View File
@@ -10,14 +10,13 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class User : Account
{
/// <summary>
/// Hex Gravatar identifier, now obsolete
/// </summary>
/// <remarks>
/// For more details: https://developer.github.com/changes/2014-09-05-removing-gravatar-id/
/// </remarks>
[Obsolete("This property is now obsolete, use AvatarUrl instead")]
public string GravatarId { get; protected set; }
public User() { }
public User(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, bool siteAdmin)
: base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, url)
{
SiteAdmin = siteAdmin;
}
/// <summary>
/// Whether or not the user is an administrator of the site