renamed IObservableBlobClient to IObservableBlobsClient

This commit is contained in:
Brendan Forster
2014-02-07 09:29:49 +11:00
parent 90dca5b5e0
commit c6b0ea7357
8 changed files with 18 additions and 38 deletions

View File

@@ -1,32 +0,0 @@
using System;
namespace Octokit.Reactive
{
public interface IObservableBlobClient
{
/// <summary>
/// Gets a single Blob by SHA.
/// </summary>
/// <remarks>
/// http://developer.github.com/v3/git/blobs/#get-a-blob
/// </remarks>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="reference">The SHA of the blob</param>
/// <returns>The <see cref="Blob"/> for the specified SHA.</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<Blob> Get(string owner, string name, string reference);
/// <summary>
/// Creates a new Blob
/// </summary>
/// <remarks>
/// http://developer.github.com/v3/git/blobs/#create-a-blob
/// </remarks>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="newBlob">The new Blob</param>
/// <returns>The <see cref="Blob"/> that was just created.</returns>
IObservable<BlobReference> Create(string owner, string name, NewBlob newBlob);
}
}

View File

@@ -5,7 +5,7 @@
/// </summary> /// </summary>
public interface IObservableGitDatabaseClient public interface IObservableGitDatabaseClient
{ {
IObservableBlobClient Blob { get; set; } IObservableBlobsClient Blob { get; set; }
IObservableTagsClient Tag { get; set; } IObservableTagsClient Tag { get; set; }
IObservableTreesClient Tree { get; set; } IObservableTreesClient Tree { get; set; }
IObservableCommitsClient Commit { get; set; } IObservableCommitsClient Commit { get; set; }

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Octokit.Reactive
{
public interface IObservableTeamsClient
{
}
}

View File

@@ -3,7 +3,7 @@ using System.Reactive.Threading.Tasks;
namespace Octokit.Reactive namespace Octokit.Reactive
{ {
public class ObservableBlobClient : IObservableBlobClient public class ObservableBlobClient : IObservableBlobsClient
{ {
readonly IBlobsClient _client; readonly IBlobsClient _client;

View File

@@ -11,7 +11,7 @@
Reference = new ObservableReferencesClient(client); Reference = new ObservableReferencesClient(client);
} }
public IObservableBlobClient Blob { get; set; } public IObservableBlobsClient Blob { get; set; }
public IObservableTagsClient Tag { get; set; } public IObservableTagsClient Tag { get; set; }
public IObservableTreesClient Tree { get; set; } public IObservableTreesClient Tree { get; set; }
public IObservableCommitsClient Commit { get; set; } public IObservableCommitsClient Commit { get; set; }

View File

@@ -6,7 +6,7 @@
IObservableAuthorizationsClient Authorization { get; } IObservableAuthorizationsClient Authorization { get; }
IObservableActivitiesClient Activity { get; } IObservableActivitiesClient Activity { get; }
IObservableBlobClient Blob { get; } IObservableBlobsClient Blob { get; }
IObservableMiscellaneousClient Miscellaneous { get; } IObservableMiscellaneousClient Miscellaneous { get; }
IObservableOrganizationsClient Organization { get; } IObservableOrganizationsClient Organization { get; }
IObservableRepositoriesClient Repository { get; } IObservableRepositoriesClient Repository { get; }

View File

@@ -54,7 +54,7 @@ namespace Octokit.Reactive
public IObservableAuthorizationsClient Authorization { get; private set; } public IObservableAuthorizationsClient Authorization { get; private set; }
public IObservableActivitiesClient Activity { get; private set; } public IObservableActivitiesClient Activity { get; private set; }
public IObservableBlobClient Blob { get; private set; } public IObservableBlobsClient Blob { get; private set; }
public IObservableMiscellaneousClient Miscellaneous { get; private set; } public IObservableMiscellaneousClient Miscellaneous { get; private set; }
public IObservableNotificationsClient Notification { get; private set; } public IObservableNotificationsClient Notification { get; private set; }
public IObservableOrganizationsClient Organization { get; private set; } public IObservableOrganizationsClient Organization { get; private set; }

View File

@@ -77,7 +77,7 @@
<Compile Include="Clients\IObservableWatchedClient.cs" /> <Compile Include="Clients\IObservableWatchedClient.cs" />
<Compile Include="Clients\IObservableFollowersClient.cs" /> <Compile Include="Clients\IObservableFollowersClient.cs" />
<Compile Include="Clients\ObservableSearchClient.cs" /> <Compile Include="Clients\ObservableSearchClient.cs" />
<Compile Include="Clients\IObservableBlobClient.cs" /> <Compile Include="Clients\IObservableBlobsClient.cs" />
<Compile Include="Clients\IObservableGistCommentsClient.cs" /> <Compile Include="Clients\IObservableGistCommentsClient.cs" />
<Compile Include="Clients\IObservableGistsClient.cs" /> <Compile Include="Clients\IObservableGistsClient.cs" />
<Compile Include="Clients\IObservableReferencesClient.cs" /> <Compile Include="Clients\IObservableReferencesClient.cs" />