Merge pull request #64 from octokit/half-ogre/fix-for-enterprise-plans

Fix the Plan model to work with Enterprise
This commit is contained in:
Drew Miller
2013-10-08 16:52:06 -07:00
2 changed files with 7 additions and 3 deletions
+1
View File
@@ -5,6 +5,7 @@ namespace Octokit.Internal
{
public interface ICredentialStore
{
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification="Nope")]
Task<Credentials> GetCredentials();
}
}
+6 -3
View File
@@ -8,7 +8,8 @@ namespace Octokit
/// <summary>
/// The number of collaborators allowed with this plan.
/// </summary>
public int Collaborators { get; set; }
/// <remarks>This returns <see cref="long"/> because GitHub Enterprise uses a sentinel value of 999999999999 to denote an "unlimited" number of collaborators.</remarks>
public long Collaborators { get; set; }
/// <summary>
/// The name of the plan.
@@ -18,12 +19,14 @@ namespace Octokit
/// <summary>
/// The number of private repositories allowed with this plan.
/// </summary>
public int PrivateRepos { get; set; }
/// <remarks>This returns <see cref="long"/> because GitHub Enterprise uses a sentinel value of 999999999999 to denote an "unlimited" number of plans.</remarks>
public long PrivateRepos { get; set; }
/// <summary>
/// The amount of disk space allowed with this plan.
/// </summary>
public int Space { get; set; }
/// <remarks>This returns <see cref="long"/> because GitHub Enterprise uses a sentinel value of 999999999999 to denote an "unlimited" amount of disk space.</remarks>
public long Space { get; set; }
/// <summary>
/// The billing email for the organization. Only has a value in response to editing an organization.