Files
octokit.net/Octokit/Models/Response/MetaPublicKey.cs
Colby Williams f9fb116eab [FEAT]: Add support for Public Keys API (#2945)
* Add support for /mets/public_keys/<keyType>

* "files.insertFinalNewline": false

* revert and make setttings.json change csharp only

* formatting

* remove final new line

---------

Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
2024-12-27 14:05:00 -06:00

30 lines
765 B
C#

using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class MetaPublicKey
{
public MetaPublicKey() { }
public MetaPublicKey(string keyIdentifier, string key, bool isCurrent)
{
KeyIdentifier = keyIdentifier;
Key = key;
IsCurrent = isCurrent;
}
public string KeyIdentifier { get; protected set; }
public string Key { get; protected set; }
public bool IsCurrent { get; protected set; }
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.InvariantCulture, "KeyIdentifier: {0} IsCurrent: {1}", KeyIdentifier, IsCurrent); }
}
}
}