mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-23 06:48:51 +00:00
b0551e3631
Mark ObersvableSshKeysClient methods obsolete Mark SshKey class obsolete Mark SshKeyInfo class obsolete Mark SshKey Extension methods in ModelExtensions.cs obsolete
60 lines
1.3 KiB
C#
60 lines
1.3 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
[Obsolete("This response class is obsolete. Please use PublicKey instead")]
|
|
public class SshKey
|
|
{
|
|
public SshKey()
|
|
{
|
|
}
|
|
|
|
public SshKey(string key)
|
|
{
|
|
Key = key;
|
|
}
|
|
|
|
public SshKey(string key, string title)
|
|
{
|
|
Key = key;
|
|
Title = title;
|
|
}
|
|
|
|
protected SshKey(int id, string key, string title, string url)
|
|
{
|
|
Id = id;
|
|
Key = key;
|
|
Title = title;
|
|
Url = url;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The system-wide unique Id for this user.
|
|
/// </summary>
|
|
public int Id { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The SSH Key
|
|
/// </summary>
|
|
public string Key { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The title of the SSH key
|
|
/// </summary>
|
|
public string Title { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The api URL for this organization.
|
|
/// </summary>
|
|
public string Url { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get { return string.Format(CultureInfo.InvariantCulture, "Title: {0} ", Title); }
|
|
}
|
|
}
|
|
}
|