From 2d81cb37cc356051098b4608dab24f00ee7189c2 Mon Sep 17 00:00:00 2001 From: Haacked Date: Tue, 8 Oct 2013 16:59:27 -0700 Subject: [PATCH] Move more types into the Octokit namespace This makes it so GHfW doesn't have to reference Octokit.Internal --- Octokit/ApiExtensions.cs | 1 - Octokit/Http/ApiConnection.cs | 3 ++- Octokit/Http/ApiInfo.cs | 2 +- Octokit/Http/ApiInfoExtensions.cs | 2 +- Octokit/Http/Connection.cs | 3 ++- Octokit/Http/Credentials.cs | 2 +- Octokit/Http/CredentialsExtensions.cs | 2 +- Octokit/Http/IApiConnection.cs | 2 +- Octokit/Http/IConnection.cs | 2 +- Octokit/Http/ICredentialStore.cs | 2 +- Octokit/Http/IResponse.cs | 3 ++- 11 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Octokit/ApiExtensions.cs b/Octokit/ApiExtensions.cs index 8c72e62f..259cef81 100644 --- a/Octokit/ApiExtensions.cs +++ b/Octokit/ApiExtensions.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; #endif using System.Threading.Tasks; -using Octokit.Internal; namespace Octokit { diff --git a/Octokit/Http/ApiConnection.cs b/Octokit/Http/ApiConnection.cs index 3242d00d..49a95a8d 100644 --- a/Octokit/Http/ApiConnection.cs +++ b/Octokit/Http/ApiConnection.cs @@ -2,8 +2,9 @@ using System.Collections.Generic; using System.IO; using System.Threading.Tasks; +using Octokit.Internal; -namespace Octokit.Internal +namespace Octokit { public class ApiConnection : IApiConnection { diff --git a/Octokit/Http/ApiInfo.cs b/Octokit/Http/ApiInfo.cs index 9916d8d0..64b27ff1 100644 --- a/Octokit/Http/ApiInfo.cs +++ b/Octokit/Http/ApiInfo.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; #endif -namespace Octokit.Internal +namespace Octokit { /// /// Extra information returned as part of each api response. diff --git a/Octokit/Http/ApiInfoExtensions.cs b/Octokit/Http/ApiInfoExtensions.cs index 915832f0..fb4ca88d 100644 --- a/Octokit/Http/ApiInfoExtensions.cs +++ b/Octokit/Http/ApiInfoExtensions.cs @@ -1,6 +1,6 @@ using System; -namespace Octokit.Internal +namespace Octokit { public static class ApiInfoExtensions { diff --git a/Octokit/Http/Connection.cs b/Octokit/Http/Connection.cs index b104c8c5..f3b6d5e5 100644 --- a/Octokit/Http/Connection.cs +++ b/Octokit/Http/Connection.cs @@ -4,8 +4,9 @@ using System.Globalization; using System.Net; using System.Net.Http; using System.Threading.Tasks; +using Octokit.Internal; -namespace Octokit.Internal +namespace Octokit { // NOTE: Every request method must go through the `RunRequest` code path. So if you need to add a new method // ensure it goes through there. :) diff --git a/Octokit/Http/Credentials.cs b/Octokit/Http/Credentials.cs index 71bd3d8b..895876f9 100644 --- a/Octokit/Http/Credentials.cs +++ b/Octokit/Http/Credentials.cs @@ -1,6 +1,6 @@ using System.Diagnostics.CodeAnalysis; -namespace Octokit.Internal +namespace Octokit { public class Credentials { diff --git a/Octokit/Http/CredentialsExtensions.cs b/Octokit/Http/CredentialsExtensions.cs index 5fff0fa7..14dbe226 100644 --- a/Octokit/Http/CredentialsExtensions.cs +++ b/Octokit/Http/CredentialsExtensions.cs @@ -1,4 +1,4 @@ -namespace Octokit.Internal +namespace Octokit { public static class CredentialsExtensions { diff --git a/Octokit/Http/IApiConnection.cs b/Octokit/Http/IApiConnection.cs index bc15bc49..c84c7afc 100644 --- a/Octokit/Http/IApiConnection.cs +++ b/Octokit/Http/IApiConnection.cs @@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis; using System.IO; using System.Threading.Tasks; -namespace Octokit.Internal +namespace Octokit { /// /// Wraps an IConnection and provides useful methods for an endpoint. diff --git a/Octokit/Http/IConnection.cs b/Octokit/Http/IConnection.cs index e04433c6..113a6af3 100644 --- a/Octokit/Http/IConnection.cs +++ b/Octokit/Http/IConnection.cs @@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis; using System.IO; using System.Threading.Tasks; -namespace Octokit.Internal +namespace Octokit { public interface IConnection { diff --git a/Octokit/Http/ICredentialStore.cs b/Octokit/Http/ICredentialStore.cs index 90b67c07..d605678a 100644 --- a/Octokit/Http/ICredentialStore.cs +++ b/Octokit/Http/ICredentialStore.cs @@ -1,7 +1,7 @@ using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; -namespace Octokit.Internal +namespace Octokit { public interface ICredentialStore { diff --git a/Octokit/Http/IResponse.cs b/Octokit/Http/IResponse.cs index 69f3e8d7..143b0552 100644 --- a/Octokit/Http/IResponse.cs +++ b/Octokit/Http/IResponse.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; using System.Net; +using Octokit.Internal; -namespace Octokit.Internal +namespace Octokit { public interface IResponse : IResponse {