mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
Create Observable Tests
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableTreesClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a Tree Response for a given SHA.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/trees/#get-a-tree
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="reference">The SHA that references the tree</param>
|
||||
/// <returns>The <see cref="TreeResponse"/> for the specified Tree.</returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<TreeResponse> Get(string owner, string name, string reference);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new Tree in the specified repo
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/trees/#create-a-tree
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="newTree">The value of the new tree</param>
|
||||
/// <returns>The <see cref="TreeResponse"/> that was just created.</returns>
|
||||
IObservable<TreeResponse> Create(string owner, string name, NewTree newTree);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user