Add ObservableUserGpgKeysClient and fixes to satisfy convention tests

This commit is contained in:
Henrik Andersson
2016-06-05 15:09:13 +10:00
parent 06700b21f5
commit 3ad22b5d9d
13 changed files with 233 additions and 13 deletions

View File

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