mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-24 15:19:02 +00:00
39 lines
1021 B
C#
39 lines
1021 B
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// Represents the response information from a <see cref="UserAdministrationClient.Rename(string, UserRename)"/> operation
|
|
/// </summary>
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class UserRenameResponse
|
|
{
|
|
public UserRenameResponse() { }
|
|
|
|
public UserRenameResponse(string message, string url)
|
|
{
|
|
Message = message;
|
|
Url = url;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Message indiating if the Rename request was queued
|
|
/// </summary>
|
|
public string Message { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Url to the user that will be renamed
|
|
/// </summary>
|
|
public string Url { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Message: {0}", Message);
|
|
}
|
|
}
|
|
}
|
|
}
|