mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-23 23:08:17 +00:00
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Octokit.Internal;
|
|
|
|
namespace Octokit
|
|
{
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gpg")]
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class GpgKey
|
|
{
|
|
public int Id { get; protected set; }
|
|
public int? PrimaryKeyId { get; protected set; }
|
|
public string KeyId { get; protected set; }
|
|
public string PublicKey { get; protected set; }
|
|
public IReadOnlyList<EmailAddress> Emails { get; protected set; }
|
|
public IReadOnlyList<GpgKey> Subkeys { get; protected set; }
|
|
public bool CanSign { get; protected set; }
|
|
[Parameter(Key = "can_encrypt_comms")]
|
|
public bool CanEncryptCommunications { get; protected set; }
|
|
public bool CanEncryptStorage { get; protected set; }
|
|
public bool CanCertify { get; protected set; }
|
|
public DateTimeOffset CreatedAt { get; protected set; }
|
|
public DateTimeOffset? ExpiresAt { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get { return string.Format(CultureInfo.InvariantCulture, "Id: {0} Key: {1}", Id, PublicKey); }
|
|
}
|
|
}
|
|
}
|