remove PemissionType enum;

This commit is contained in:
maddin2016
2016-06-06 15:05:28 +02:00
parent a0a85c860e
commit dfccb51e5f
2 changed files with 4 additions and 15 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ namespace Octokit.Tests.Clients
{
var connection = Substitute.For<IApiConnection>();
var client = new TeamsClient(connection);
var newPermission = new TeamRepositoryUpdate(PermissionType.Admin);
var newPermission = new TeamRepositoryUpdate(Permission.Admin);
client.AddRepository(1, "org", "repo", newPermission);
+3 -14
View File
@@ -4,32 +4,21 @@ using System.Globalization;
namespace Octokit
{
public enum PermissionType
{
[Parameter(Value = "pull")]
Pull,
[Parameter(Value = "push")]
Push,
[Parameter(Value = "admin")]
Admin
}
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class TeamRepositoryUpdate
{
/// <summary>
/// Used to add or update a team repository.
/// </summary>
public TeamRepositoryUpdate(PermissionType permission)
public TeamRepositoryUpdate(Permission permission)
{
Permission = permission;
}
/// <summary>
/// The permission to grant the team on this repository.
/// </summary>
[Parameter(Key = "permission")]
public PermissionType Permission { get; private set; }
/// </summary>
public Permission Permission { get; private set; }
internal string DebuggerDisplay
{