diff --git a/Octokit/Helpers/ApiUrls.Keys.cs b/Octokit/Helpers/ApiUrls.Keys.cs index b936322e..327f11ef 100644 --- a/Octokit/Helpers/ApiUrls.Keys.cs +++ b/Octokit/Helpers/ApiUrls.Keys.cs @@ -6,11 +6,18 @@ namespace Octokit { static readonly Uri _currentUserKeysUrl = new Uri("user/keys", UriKind.Relative); + /// + /// Returns the to retrieve keys for the current user. + /// public static Uri Keys() { return _currentUserKeysUrl; } + /// + /// Returns the to retrieve keys for a given user. + /// + /// The user to search on public static Uri Keys(string userName) { return "users/{0}/keys".FormatUri(userName); diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index 68f91d92..84400bbf 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -681,7 +681,7 @@ namespace Octokit } /// - /// Returns the for the specified commit. + /// Returns the for the specified gist. /// /// The id of the gist public static Uri Gist(string id) @@ -689,26 +689,44 @@ namespace Octokit return "gists/{0}".FormatUri(id); } + /// + /// Returns the for the forks of a given gist. + /// + /// The id of the gist public static Uri ForkGist(string id) { return "gists/{0}/forks".FormatUri(id); } + /// + /// Returns the for all public gists. + /// public static Uri PublicGists() { return "gists/public".FormatUri(); } + /// + /// Returns the for all started public gists. + /// public static Uri StarredGists() { return "gists/starred".FormatUri(); } + /// + /// Returns the for all gists for a given user. + /// + /// The user to search for public static Uri UsersGists(string user) { return "users/{0}/gists".FormatUri(user); } + /// + /// Returns the to star a given gist. + /// + /// The id of the gist public static Uri StarGist(string id) { return "gists/{0}/star".FormatUri(id); diff --git a/Octokit/Helpers/CollectionExtensions.cs b/Octokit/Helpers/CollectionExtensions.cs index b9d4d04d..15cc101b 100644 --- a/Octokit/Helpers/CollectionExtensions.cs +++ b/Octokit/Helpers/CollectionExtensions.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Linq; namespace Octokit { diff --git a/Octokit/Helpers/EnumExtensions.cs b/Octokit/Helpers/EnumExtensions.cs index 8b8dcc57..15ac0640 100644 --- a/Octokit/Helpers/EnumExtensions.cs +++ b/Octokit/Helpers/EnumExtensions.cs @@ -9,7 +9,7 @@ namespace Octokit static class EnumExtensions { [SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")] - public static string ToParameter(this Enum prop) + internal static string ToParameter(this Enum prop) { if (prop == null) return null; diff --git a/Octokit/Helpers/HttpClientExtensions.cs b/Octokit/Helpers/HttpClientExtensions.cs index bb62925d..2f401cc3 100644 --- a/Octokit/Helpers/HttpClientExtensions.cs +++ b/Octokit/Helpers/HttpClientExtensions.cs @@ -1,4 +1,5 @@ -using System.Threading; +using System; +using System.Threading; using System.Threading.Tasks; using Octokit.Internal; @@ -6,6 +7,7 @@ namespace Octokit { public static class HttpClientExtensions { + [Obsolete("This will be removed in a future release")] public static Task> Send(this IHttpClient httpClient, IRequest request) { Ensure.ArgumentNotNull(httpClient, "httpClient");