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
+14
View File
@@ -7,6 +7,20 @@ namespace Octokit
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Notification
{
public Notification() { }
public Notification(string id, Repository repository, NotificationInfo subject, string reason, bool unread, string updatedAt, string lastReadAt, string url)
{
Id = id;
Repository = repository;
Subject = subject;
Reason = reason;
Unread = unread;
UpdatedAt = updatedAt;
LastReadAt = lastReadAt;
Url = url;
}
public string Id { get; protected set; } // NB: API currently returns this as string which is Weird
public Repository Repository { get; protected set; }