mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
32 lines
830 B
C#
32 lines
830 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(TeamPermissionLegacy permission)
|
|
{
|
|
Permission = permission;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The permission to grant the team on this repository.
|
|
/// </summary>
|
|
public TeamPermissionLegacy Permission { get; private set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Permission: {0}", Permission);
|
|
}
|
|
}
|
|
}
|
|
}
|