using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Describes the new login when renaming a user via the method. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class UserRename { public UserRename() { } /// /// Initializes a new instance of the class. /// /// The new login for the user. public UserRename(string login) { Ensure.ArgumentNotNullOrEmptyString(login, "login"); Login = login; } /// /// The new username for the user /// public string Login { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Login: {0}", Login); } } } }