Skip to content

Commit

Permalink
add new request
Browse files Browse the repository at this point in the history
  • Loading branch information
martinscholz83 committed Jun 6, 2016
1 parent a1eb0aa commit 11b1d75
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Octokit.Reactive/Clients/IObservableTeamsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public interface IObservableTeamsClient
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
/// </remarks>
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
IObservable<bool> AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission);
IObservable<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission);

/// <summary>
/// Gets whether or not the given repository is managed by the given team.
Expand Down
2 changes: 1 addition & 1 deletion Octokit.Reactive/Clients/ObservableTeamsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public IObservable<bool> AddRepository(int id, string organization, string repoN
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
/// </remarks>
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
public IObservable<bool> AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission)
public IObservable<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission)
{
Ensure.ArgumentNotNullOrEmptyString(organization, "organization");
Ensure.ArgumentNotNullOrEmptyString(repoName, "repoName");
Expand Down
2 changes: 1 addition & 1 deletion Octokit.Tests/Clients/TeamsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public void AddOrUpdatePermission()
{
var connection = Substitute.For<IApiConnection>();
var client = new TeamsClient(connection);
var newPermission = new TeamRepositoryUpdate(Permission.Admin);
var newPermission = new RepositoryPermissionRequest(Permission.Admin);

client.AddRepository(1, "org", "repo", newPermission);

Expand Down
2 changes: 1 addition & 1 deletion Octokit/Clients/ITeamsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public interface ITeamsClient
/// <param name="permission">The permission to grant the team on this repository.</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns></returns>
Task<bool> AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission);
Task<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission);

/// <summary>
/// Remove a repository from the team
Expand Down
2 changes: 1 addition & 1 deletion Octokit/Clients/TeamsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public async Task<bool> AddRepository(int id, string organization, string repoNa
/// <param name="permission">The permission to grant the team on this repository.</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns></returns>
public async Task<bool> AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission)
public async Task<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission)
{
Ensure.ArgumentNotNullOrEmptyString(organization, "organization");
Ensure.ArgumentNotNullOrEmptyString(repoName, "repoName");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class TeamRepositoryUpdate
public class RepositoryPermissionRequest
{
/// <summary>
/// Used to add or update a team repository.
/// </summary>
public TeamRepositoryUpdate(Permission permission)
public RepositoryPermissionRequest(Permission permission)
{
Permission = permission;
}
Expand Down
2 changes: 1 addition & 1 deletion Octokit/Octokit-Mono.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
<Compile Include="Clients\MigrationsClient.cs" />
<Compile Include="Models\Request\StartMigrationRequest.cs" />
<Compile Include="Models\Response\Migration.cs" />
<Compile Include="Models\Request\TeamRepositoryUpdate.cs" />
<Compile Include="Models\Request\RepositoryPermissionRequest.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
2 changes: 1 addition & 1 deletion Octokit/Octokit-MonoAndroid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
<Compile Include="Models\Response\Enterprise\Migration.cs" />
<Compile Include="Models\Request\StartMigrationRequest.cs" />
<Compile Include="Models\Response\Migration.cs" />
<Compile Include="Models\Request\TeamRepositoryUpdate.cs" />
<Compile Include="Models\Request\RepositoryPermissionRequest.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
</Project>
2 changes: 1 addition & 1 deletion Octokit/Octokit-Monotouch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
<Compile Include="Models\Response\Enterprise\Migration.cs" />
<Compile Include="Models\Request\StartMigrationRequest.cs" />
<Compile Include="Models\Response\Migration.cs" />
<Compile Include="Models\Request\TeamRepositoryUpdate.cs" />
<Compile Include="Models\Request\RepositoryPermissionRequest.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Octokit/Octokit-Portable.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
<Compile Include="Clients\MigrationsClient.cs" />
<Compile Include="Models\Request\StartMigrationRequest.cs" />
<Compile Include="Models\Response\Migration.cs" />
<Compile Include="Models\Request\TeamRepositoryUpdate.cs" />
<Compile Include="Models\Request\RepositoryPermissionRequest.cs" />
</ItemGroup>
<ItemGroup>
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
Expand Down
2 changes: 1 addition & 1 deletion Octokit/Octokit-netcore45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
<Compile Include="Clients\MigrationsClient.cs" />
<Compile Include="Models\Request\StartMigrationRequest.cs" />
<Compile Include="Models\Response\Migration.cs" />
<Compile Include="Models\Request\TeamRepositoryUpdate.cs" />
<Compile Include="Models\Request\RepositoryPermissionRequest.cs" />
</ItemGroup>
<ItemGroup>
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
Expand Down
2 changes: 1 addition & 1 deletion Octokit/Octokit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<Compile Include="Models\Request\NotificationsRequest.cs" />
<Compile Include="Models\Request\CommitRequest.cs" />
<Compile Include="Models\Request\StartMigrationRequest.cs" />
<Compile Include="Models\Request\TeamRepositoryUpdate.cs" />
<Compile Include="Models\Request\RepositoryPermissionRequest.cs" />
<Compile Include="Models\Request\UserRename.cs" />
<Compile Include="Models\Response\ActivityPayloads\ActivityPayload.cs" />
<Compile Include="Models\Response\ActivityPayloads\CommitCommentPayload.cs" />
Expand Down

0 comments on commit 11b1d75

Please sign in to comment.