diff --git a/Octokit.Reactive/Clients/IObservableTeamsClient.cs b/Octokit.Reactive/Clients/IObservableTeamsClient.cs index 7acad62111..908960b903 100644 --- a/Octokit.Reactive/Clients/IObservableTeamsClient.cs +++ b/Octokit.Reactive/Clients/IObservableTeamsClient.cs @@ -183,7 +183,7 @@ public interface IObservableTeamsClient /// See the API documentation for more information. /// /// if the repository was added to the team; otherwise. - IObservable AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission); + IObservable AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission); /// /// Gets whether or not the given repository is managed by the given team. diff --git a/Octokit.Reactive/Clients/ObservableTeamsClient.cs b/Octokit.Reactive/Clients/ObservableTeamsClient.cs index 1649472bc7..2b4bd0ec1b 100644 --- a/Octokit.Reactive/Clients/ObservableTeamsClient.cs +++ b/Octokit.Reactive/Clients/ObservableTeamsClient.cs @@ -258,7 +258,7 @@ public IObservable AddRepository(int id, string organization, string repoN /// See the API documentation for more information. /// /// if the repository was added to the team; otherwise. - public IObservable AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission) + public IObservable AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission) { Ensure.ArgumentNotNullOrEmptyString(organization, "organization"); Ensure.ArgumentNotNullOrEmptyString(repoName, "repoName"); diff --git a/Octokit.Tests/Clients/TeamsClientTests.cs b/Octokit.Tests/Clients/TeamsClientTests.cs index d1d6a37f19..3144cd98a3 100644 --- a/Octokit.Tests/Clients/TeamsClientTests.cs +++ b/Octokit.Tests/Clients/TeamsClientTests.cs @@ -306,7 +306,7 @@ public void AddOrUpdatePermission() { var connection = Substitute.For(); var client = new TeamsClient(connection); - var newPermission = new TeamRepositoryUpdate(Permission.Admin); + var newPermission = new RepositoryPermissionRequest(Permission.Admin); client.AddRepository(1, "org", "repo", newPermission); diff --git a/Octokit/Clients/ITeamsClient.cs b/Octokit/Clients/ITeamsClient.cs index f1680ce2bc..c07d646738 100644 --- a/Octokit/Clients/ITeamsClient.cs +++ b/Octokit/Clients/ITeamsClient.cs @@ -168,7 +168,7 @@ public interface ITeamsClient /// The permission to grant the team on this repository. /// Thrown when a general API error occurs. /// - Task AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission); + Task AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission); /// /// Remove a repository from the team diff --git a/Octokit/Clients/TeamsClient.cs b/Octokit/Clients/TeamsClient.cs index e23f3ba243..c928e6a164 100644 --- a/Octokit/Clients/TeamsClient.cs +++ b/Octokit/Clients/TeamsClient.cs @@ -326,7 +326,7 @@ public async Task AddRepository(int id, string organization, string repoNa /// The permission to grant the team on this repository. /// Thrown when a general API error occurs. /// - public async Task AddRepository(int id, string organization, string repoName, TeamRepositoryUpdate permission) + public async Task AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission) { Ensure.ArgumentNotNullOrEmptyString(organization, "organization"); Ensure.ArgumentNotNullOrEmptyString(repoName, "repoName"); diff --git a/Octokit/Models/Request/TeamRepositoryUpdate.cs b/Octokit/Models/Request/RepositoryPermissionRequest.cs similarity index 86% rename from Octokit/Models/Request/TeamRepositoryUpdate.cs rename to Octokit/Models/Request/RepositoryPermissionRequest.cs index 6f5af1f88e..9475b01195 100644 --- a/Octokit/Models/Request/TeamRepositoryUpdate.cs +++ b/Octokit/Models/Request/RepositoryPermissionRequest.cs @@ -5,12 +5,12 @@ namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] - public class TeamRepositoryUpdate + public class RepositoryPermissionRequest { /// /// Used to add or update a team repository. /// - public TeamRepositoryUpdate(Permission permission) + public RepositoryPermissionRequest(Permission permission) { Permission = permission; } diff --git a/Octokit/Octokit-Mono.csproj b/Octokit/Octokit-Mono.csproj index a2638babd8..bb98c8a898 100644 --- a/Octokit/Octokit-Mono.csproj +++ b/Octokit/Octokit-Mono.csproj @@ -466,7 +466,7 @@ - + \ No newline at end of file diff --git a/Octokit/Octokit-MonoAndroid.csproj b/Octokit/Octokit-MonoAndroid.csproj index b4a0a2930d..cf0aa9e720 100644 --- a/Octokit/Octokit-MonoAndroid.csproj +++ b/Octokit/Octokit-MonoAndroid.csproj @@ -477,7 +477,7 @@ - + \ No newline at end of file diff --git a/Octokit/Octokit-Monotouch.csproj b/Octokit/Octokit-Monotouch.csproj index 50fdde6d90..cbb7347e06 100644 --- a/Octokit/Octokit-Monotouch.csproj +++ b/Octokit/Octokit-Monotouch.csproj @@ -473,7 +473,7 @@ - + diff --git a/Octokit/Octokit-Portable.csproj b/Octokit/Octokit-Portable.csproj index 44aa78eb46..d5cc1c6eaf 100644 --- a/Octokit/Octokit-Portable.csproj +++ b/Octokit/Octokit-Portable.csproj @@ -463,7 +463,7 @@ - + diff --git a/Octokit/Octokit-netcore45.csproj b/Octokit/Octokit-netcore45.csproj index c459ed446b..b6714a9baa 100644 --- a/Octokit/Octokit-netcore45.csproj +++ b/Octokit/Octokit-netcore45.csproj @@ -470,7 +470,7 @@ - + diff --git a/Octokit/Octokit.csproj b/Octokit/Octokit.csproj index afd1dc39c1..24dad5da12 100644 --- a/Octokit/Octokit.csproj +++ b/Octokit/Octokit.csproj @@ -144,7 +144,7 @@ - +