Adjust some Uri names for starring

This commit is contained in:
James R Sconfitto
2013-11-07 07:58:09 -05:00
parent 7f9518db8d
commit 5b804b6ef9
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ namespace Octokit
{
Ensure.ArgumentNotNullOrEmptyString(user, "user");
return ApiConnection.GetAll<Repository>(ApiUrls.Starred(user));
return ApiConnection.GetAll<Repository>(ApiUrls.StarredByUser(user));
}
/// <summary>
@@ -67,7 +67,7 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(user, "user");
Ensure.ArgumentNotNull(request, "request");
return ApiConnection.GetAll<Repository>(ApiUrls.Starred(user), request.ToParametersDictionary());
return ApiConnection.GetAll<Repository>(ApiUrls.StarredByUser(user), request.ToParametersDictionary());
}
/// <summary>
@@ -82,7 +82,7 @@ namespace Octokit
try
{
var response = await Connection.GetAsync<object>(ApiUrls.CheckStarred(owner, repo), null, null)
var response = await Connection.GetAsync<object>(ApiUrls.Starred(owner, repo), null, null)
.ConfigureAwait(false);
if (response.StatusCode != HttpStatusCode.NotFound && response.StatusCode != HttpStatusCode.NoContent)
{
+2 -2
View File
@@ -378,7 +378,7 @@ namespace Octokit
/// Returns the <see cref="Uri"/> that lists the starred repositories for the specified user.
/// </summary>
/// <param name="user">The user that has the stars</param>
public static Uri Starred(string user)
public static Uri StarredByUser(string user)
{
return "users/{0}/starred".FormatUri(user);
}
@@ -389,7 +389,7 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param>
/// <param name="repo">The name of the repository</param>
/// <returns></returns>
public static Uri CheckStarred(string owner, string repo)
public static Uri Starred(string owner, string repo)
{
return "user/starred/{0}/{1}".FormatUri(owner, repo);
}