Skip to content

Commit

Permalink
Add comments and debugger display
Browse files Browse the repository at this point in the history
  • Loading branch information
haacked committed Apr 22, 2014
1 parent 54bb948 commit 3ddca30
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Octokit/Models/Response/OauthToken.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;

namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class OauthToken
{
/// <summary>
/// The type of OAuth token
/// </summary>
public string TokenType { get; set; }

/// <summary>
/// The secret OAuth access token. Use this to authenticate Octokit.net's client.
/// </summary>
public string AccessToken { get; set; }

/// <summary>
/// The list of scopes the token includes.
/// </summary>
public IReadOnlyCollection<string> Scope { get; set; }

internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "TokenType: {0}, AccessToken: {1}, Scopes: {2}",
TokenType,
AccessToken,
Scope);
}
}
}
}

0 comments on commit 3ddca30

Please sign in to comment.