mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-23 06:48:51 +00:00
36 lines
843 B
C#
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); }
|
|
}
|
|
}
|
|
}
|