Skip to content

Commit

Permalink
feat: add missed props for organization (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrediKats authored Feb 13, 2021
1 parent 36829cb commit 6755553
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion Octokit/Models/Response/Organization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,40 @@ public class Organization : Account
{
public Organization() { }

public Organization(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 nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress)
public Organization(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 nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress, string reposUrl, string eventsUrl, string hooksUrl, string issuesUrl, string membersUrl, string publicMembersUrl, string description, bool isVerified, bool hasOrganizationProjects, bool hasRepositoryProjects, DateTimeOffset updatedAt)
: base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, nodeId, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.Organization, url)
{
BillingAddress = billingAddress;
ReposUrl = reposUrl;
EventsUrl = eventsUrl;
HooksUrl = hooksUrl;
IssuesUrl = issuesUrl;
MembersUrl = membersUrl;
PublicMembersUrl = publicMembersUrl;
Description = description;
IsVerified = isVerified;
HasOrganizationProjects = hasOrganizationProjects;
HasRepositoryProjects = hasRepositoryProjects;
UpdatedAt = updatedAt;
}

/// <summary>
/// The billing address for an organization. This is only returned when updating
/// an organization.
/// </summary>
public string BillingAddress { get; protected set; }
public string ReposUrl { get; protected set; }
public string EventsUrl { get; protected set; }
public string HooksUrl { get; protected set; }
public string IssuesUrl { get; protected set; }
public string MembersUrl { get; protected set; }
public string PublicMembersUrl { get; protected set; }
public string Description { get; protected set; }
public bool IsVerified { get; protected set; }
public bool HasOrganizationProjects { get; protected set; }
public bool HasRepositoryProjects { get; protected set; }
public DateTimeOffset UpdatedAt { get; protected set; }


internal string DebuggerDisplay
{
Expand Down

0 comments on commit 6755553

Please sign in to comment.