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 Emails { get; protected set; } public IReadOnlyList 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); } } } }