Files
octokit.net/Octokit/Models/Response/Application.cs
2016-03-25 13:38:07 +07:00

36 lines
843 B
C#

using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Represents an oauth application.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Application
{
public Application() { }
public Application(string name, string url)
{
Name = name;
Url = url;
}
/// <summary>
/// <see cref="Application"/> Name.
/// </summary>
public string Name { get; protected set; }
/// <summary>
/// The Url of this <see cref="Application"/>.
/// </summary>
public string Url { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "Name: {0}", Name); }
}
}
}