mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
Fix convention tests running for gists
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Reactive;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
@@ -16,6 +17,143 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the gist</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<Gist> Get(string id);
|
||||
IObservable<Gist> Get(string id);
|
||||
|
||||
/// <summary>
|
||||
/// List the authenticated user’s gists or if called anonymously,
|
||||
/// this will return all public gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
IObservable<Gist> GetAll();
|
||||
|
||||
/// <summary>
|
||||
/// List the authenticated user’s gists or if called anonymously,
|
||||
/// this will return all public gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
/// <param name="since">Only gists updated at or after this time are returned</param>
|
||||
IObservable<Gist> GetAll(DateTimeOffset since);
|
||||
|
||||
/// <summary>
|
||||
/// Lists all public gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
IObservable<Gist> GetAllPublic();
|
||||
|
||||
/// <summary>
|
||||
/// Lists all public gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
/// <param name="since">Only gists updated at or after this time are returned</param>
|
||||
IObservable<Gist> GetAllPublic(DateTimeOffset since);
|
||||
|
||||
/// <summary>
|
||||
/// List the authenticated user’s starred gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
IObservable<Gist> GetAllStarred();
|
||||
|
||||
/// <summary>
|
||||
/// List the authenticated user’s starred gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
/// <param name="since">Only gists updated at or after this time are returned</param>
|
||||
IObservable<Gist> GetAllStarred(DateTimeOffset since);
|
||||
|
||||
/// <summary>
|
||||
/// List a user's gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
/// <param name="user">The user</param>
|
||||
IObservable<Gist> GetAllForUser(string user);
|
||||
|
||||
/// <summary>
|
||||
/// List a user's gists
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists
|
||||
/// </remarks>
|
||||
/// <param name="user">The user</param>
|
||||
/// <param name="since">Only gists updated at or after this time are returned</param>
|
||||
IObservable<Gist> GetAllForUser(string user, DateTimeOffset since);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new gist
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#create-a-gist
|
||||
/// </remarks>
|
||||
/// <param name="newGist">The new gist to create</param>
|
||||
IObservable<Gist> Create(NewGist newGist);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a fork of a gist
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#fork-a-gist
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist to fork</param>
|
||||
IObservable<Gist> Fork(string id);
|
||||
|
||||
/// <summary>
|
||||
/// Edits a gist
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#delete-a-gist
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist</param>
|
||||
/// <param name="gistUpdate">The update to the gist</param>
|
||||
IObservable<Gist> Edit(string id, GistUpdate gistUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a gist
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#delete-a-gist
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist</param>
|
||||
IObservable<Unit> Delete(string id);
|
||||
|
||||
/// <summary>
|
||||
/// Stars a gist
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#star-a-gist
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist</param>
|
||||
IObservable<Unit> Star(string id);
|
||||
|
||||
/// <summary>
|
||||
/// Unstars a gist
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#unstar-a-gist
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist</param>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unstar")]
|
||||
IObservable<Unit> Unstar(string id);
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the gist is starred
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#check-if-a-gist-is-starred
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist</param>
|
||||
IObservable<bool> IsStarred(string id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user