using System.Diagnostics;
using System;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryPermissions
{
public RepositoryPermissions() { }
public RepositoryPermissions(bool admin, bool maintain, bool push, bool triage, bool pull)
{
Admin = admin;
Maintain = maintain;
Push = push;
Triage = triage;
Pull = pull;
}
///
/// Whether the current user has administrative permissions
///
public bool Admin { get; private set;}
///
/// Whether the current user has maintain permissions
///
public bool Maintain { get; private set;}
///
/// Whether the current user has push permissions
///
public bool Push { get; private set;}
///
/// Whether the current user has triage permissions
///
public bool Triage { get; private set;}
///
/// Whether the current user has pull permissions
///
public bool Pull { get; private set;}
internal string DebuggerDisplay
{
get
{
return FormattableString.Invariant($"Admin: {Admin}, Maintain: {Maintain}, Push: {Push}, Triage: {Triage}, Pull: {Pull}");
}
}
}
}