mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
Adjust some Uri names for starring
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user