using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to update a teamm. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class UpdateTeam { /// /// Initializes a new instance of the class. /// /// The team. public UpdateTeam(string team) { Name = team; } /// /// Initializes a new instance of the class. /// /// The team. /// The permission. public UpdateTeam(string team, Permission permission) { Name = team; Permission = permission; } /// /// team name /// public string Name { get; set; } /// /// permission for this team /// public Permission? Permission { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Team: {0} Permission: {1}", Name, Permission.GetValueOrDefault()); } } } }