using System; using System.Diagnostics; using System.Globalization; using Octokit.Internal; namespace Octokit { /// /// organization teams /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Team { public Team() { } public Team(Uri url, int id, string name, Permission permission, int membersCount, int reposCount, Organization organization, string ldapDistinguishedName) { Url = url; Id = id; Name = name; Permission = permission; MembersCount = membersCount; ReposCount = reposCount; Organization = organization; LdapDistinguishedName = ldapDistinguishedName; } /// /// url for this team /// public Uri Url { get; protected set; } /// /// team id /// public int Id { get; protected set; } /// /// team name /// public string Name { get; protected set; } /// /// permission attached to this team /// public Permission Permission { get; protected set; } /// /// how many members in this team /// public int MembersCount { get; protected set; } /// /// how many repo this team has access to /// public int ReposCount { get; protected set; } /// /// who this team belongs to /// public Organization Organization { get; protected set; } /// /// LDAP Binding (GitHub Enterprise only) /// [Parameter(Key = "ldap_dn")] public string LdapDistinguishedName { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Name: {0} ", Name); } } } }