Files
Ryan Gribble b0551e3631 Mark SshKeysClient and ISshKeysClient methods obsolete
Mark ObersvableSshKeysClient methods obsolete
Mark SshKey class obsolete
Mark SshKeyInfo class obsolete
Mark SshKey Extension methods in ModelExtensions.cs obsolete
2016-02-23 06:58:09 +10:00

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); }
}
}
}