using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// A plan (either paid or free) for a particular user /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Plan { public Plan() { } public Plan(long collaborators, string name, long privateRepos, long space, string billingEmail) { Collaborators = collaborators; Name = name; PrivateRepos = privateRepos; Space = space; BillingEmail = billingEmail; } /// /// The number of collaborators allowed with this plan. /// /// This returns because GitHub Enterprise uses a sentinel value of 999999999999 to denote an "unlimited" number of collaborators. public long Collaborators { get; protected set; } /// /// The name of the plan. /// public string Name { get; protected set; } /// /// The number of private repositories allowed with this plan. /// /// This returns because GitHub Enterprise uses a sentinel value of 999999999999 to denote an "unlimited" number of plans. public long PrivateRepos { get; protected set; } /// /// The amount of disk space allowed with this plan. /// /// This returns because GitHub Enterprise uses a sentinel value of 999999999999 to denote an "unlimited" amount of disk space. public long Space { get; protected set; } /// /// The billing email for the organization. Only has a value in response to editing an organization. /// public string BillingEmail { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Name: {0}, Space: {1}, Private Repos: {2}, Collaborators: {3}", Name, Space, PrivateRepos, Collaborators); } } } }