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