mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 04:40:54 +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:
@@ -11,6 +11,19 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class Activity
|
||||
{
|
||||
public Activity() { }
|
||||
|
||||
public Activity(string type, bool @public, Repository repo, User actor, Organization org, DateTimeOffset createdAt, string id)
|
||||
{
|
||||
Type = type;
|
||||
Public = @public;
|
||||
Repo = repo;
|
||||
Actor = actor;
|
||||
Org = org;
|
||||
CreatedAt = createdAt;
|
||||
Id = id;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The type of the activity.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user