This commit is contained in:
Amy Palamountain
2014-02-19 22:00:56 +13:00
parent fa9c618302
commit cd5627c824
5 changed files with 55 additions and 5 deletions
@@ -1,10 +1,14 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
/// <summary>
/// Used to create a new authorization.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class AuthorizationUpdate
{
/// <summary>
@@ -31,5 +35,14 @@ namespace Octokit
// An optional URL to remind you what app the OAuth token is for.
/// </summary>
public string NoteUrl { get; set; }
internal string DebuggerDisplay
{
get
{
var scopes = Scopes ?? new List<string>();
return String.Format(CultureInfo.InvariantCulture, "Scopes: {0} ", string.Join(",", scopes));
}
}
}
}