using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryPermissions
{
public RepositoryPermissions() { }
public RepositoryPermissions(bool admin, bool push, bool pull)
{
Admin = admin;
Push = push;
Pull = pull;
}
///
/// Whether the current user has administrative permissions
///
public bool Admin { get; protected set; }
///
/// Whether the current user has push permissions
///
public bool Push { get; protected set; }
///
/// Whether the current user has pull permissions
///
public bool Pull { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Admin: {0}, Push: {1}, Pull: {2}", Admin, Push, Pull); }
}
}
}