mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-23 14:57:39 +00:00
39 lines
991 B
C#
39 lines
991 B
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class PublicKey
|
|
{
|
|
public PublicKey() { }
|
|
|
|
public PublicKey(int id, string key, string url, string title)
|
|
{
|
|
Id = id;
|
|
Key = key;
|
|
Url = url;
|
|
Title = title;
|
|
}
|
|
|
|
public int Id { get; protected set; }
|
|
|
|
public string Key { get; protected set; }
|
|
|
|
/// <remarks>
|
|
/// Only visible for the current user, or with the correct OAuth scope
|
|
/// </remarks>
|
|
public string Url { get; protected set; }
|
|
|
|
/// <remarks>
|
|
/// Only visible for the current user, or with the correct OAuth scope
|
|
/// </remarks>
|
|
public string Title { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get { return string.Format(CultureInfo.InvariantCulture, "ID: {0} Key: {1}", Id, Key); }
|
|
}
|
|
}
|
|
}
|