using System.Collections.Generic; using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to create a new authorization. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class AuthorizationUpdate { /// /// Replaces the authorization scopes with this list. /// public IEnumerable Scopes { get; set; } /// /// A list of scopes to add to this authorization. /// public IEnumerable AddScopes { get; set; } /// /// A list of scopes to remove from this authorization. /// public IEnumerable RemoveScopes { get; set; } /// /// An optional note to remind you what the OAuth token is for. /// public string Note { get; set; } /// /// An optional URL to remind you what app the OAuth token is for. /// public string NoteUrl { get; set; } /// /// Optional parameter that allows an OAuth application to create multiple authorizations for a single user /// public string Fingerprint { get; set; } internal string DebuggerDisplay { get { var scopes = Scopes ?? new List(); return string.Format(CultureInfo.InvariantCulture, "Scopes: {0} ", string.Join(",", scopes)); } } } }