mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-14 12:04:52 +00:00
32 lines
810 B
C#
32 lines
810 B
C#
using Octokit.Internal;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class RepositoryPermissionRequest
|
|
{
|
|
/// <summary>
|
|
/// Used to add or update a team repository.
|
|
/// </summary>
|
|
public RepositoryPermissionRequest(Permission permission)
|
|
{
|
|
Permission = permission;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The permission to grant the team on this repository.
|
|
/// </summary>
|
|
public Permission Permission { get; private set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Permission: {0}", Permission);
|
|
}
|
|
}
|
|
}
|
|
}
|