using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
///
/// Describes a new organization to create via the method.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewOrganization
{
///
/// Initializes a new instance of the class.
///
/// The organization's username
/// The login of the user who will manage this organization
public NewOrganization(string login, string admin) : this(login, admin, null)
{ }
///
/// Initializes a new instance of the class.
///
/// The organization's username
/// The login of the user who will manage this organization
/// The organization's display name
public NewOrganization(string login, string admin, string profileName)
{
Login = login;
Admin = admin;
ProfileName = profileName;
}
///
/// The organization's username (required)
///
public string Login { get; private set; }
///
/// The login of the user who will manage this organization (required)
///
public string Admin { get; private set; }
///
/// The organization's display name
///
public string ProfileName { get; private set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "Login: {0} Admin: {1} ProfileName: {2}", Login, Admin, ProfileName ?? "");
}
}
}
}