mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Add ObservableUserGpgKeysClient and fixes to satisfy convention tests
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -8,6 +10,7 @@ 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; }
|
||||
@@ -23,5 +26,10 @@ namespace Octokit
|
||||
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); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user