- Renamed ApiUrls.TeamsUpdateOrDelete method name to just "Team". This

was done because the same Uri is also used to get a team, not just
updating and deleting.

- Fixed references pointing to method name that was changed.
This commit is contained in:
Jason K.
2014-02-27 16:46:29 -05:00
parent df106393be
commit b4fc16e684
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ namespace Octokit
{
Ensure.ArgumentNotNull(team, "team");
var endpoint = ApiUrls.TeamsUpdateOrDelete(id);
var endpoint = ApiUrls.Team(id);
return ApiConnection.Patch<Team>(endpoint, team);
}
@@ -72,7 +72,7 @@ namespace Octokit
/// <returns></returns>
public Task DeleteTeam(int id)
{
var endpoint = ApiUrls.TeamsUpdateOrDelete(id);
var endpoint = ApiUrls.Team(id);
return ApiConnection.Delete(endpoint);
}
}
+4 -4
View File
@@ -901,12 +901,12 @@ namespace Octokit
}
/// <summary>
/// returns the <see cref="Uri"/> for teams
/// use for update or deleting a team
/// Returns the <see cref="Uri"/> for teams
/// use for getting, updating, or deleting a <see cref="Team"/>.
/// </summary>
/// <param name="id"></param>
/// <param name="id">The id of the <see cref="Team"/>.</param>
/// <returns></returns>
public static Uri TeamsUpdateOrDelete(int id)
public static Uri Team(int id)
{
return "teams/{0}".FormatUri(id);
}