diff --git a/Octokit/Clients/ITeamsClient.cs b/Octokit/Clients/ITeamsClient.cs index 5061bb7f..2c711394 100644 --- a/Octokit/Clients/ITeamsClient.cs +++ b/Octokit/Clients/ITeamsClient.cs @@ -18,8 +18,8 @@ namespace Octokit /// Returns all s for the current org. /// /// Thrown when a general API error occurs. - /// A list of the orgs's teams s. - Task> GetAllTeams(string org); + /// A list of the orgs's teams s. + Task> GetAllTeams(string org); /// /// Returns newly created for the current org. diff --git a/Octokit/Clients/TeamsClient.cs b/Octokit/Clients/TeamsClient.cs index e9838930..d0a37d21 100644 --- a/Octokit/Clients/TeamsClient.cs +++ b/Octokit/Clients/TeamsClient.cs @@ -29,13 +29,13 @@ namespace Octokit /// /// Thrown when a general API error occurs. /// A list of the orgs's teams s. - public Task> GetAllTeams(string org) + public Task> GetAllTeams(string org) { Ensure.ArgumentNotNullOrEmptyString(org, "org"); var endpoint = "orgs/{0}/teams".FormatUri(org); - return ApiConnection.GetAll(endpoint); + return ApiConnection.GetAll(endpoint); } diff --git a/Octokit/Models/Response/TeamItem.cs b/Octokit/Models/Response/TeamItem.cs new file mode 100644 index 00000000..7d3343a8 --- /dev/null +++ b/Octokit/Models/Response/TeamItem.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; + +namespace Octokit +{ + /// + /// organization teams - used for the list + /// + public class TeamItem + { + /// + /// team id + /// + public int Id { get; set; } + + /// + /// team name + /// + public string Name { get; set; } + } +} \ No newline at end of file diff --git a/Octokit/Octokit.csproj b/Octokit/Octokit.csproj index 0dcc8b20..88d4be99 100644 --- a/Octokit/Octokit.csproj +++ b/Octokit/Octokit.csproj @@ -83,6 +83,7 @@ +