burned <returns> tags

This commit is contained in:
aedampir@gmail.com
2016-07-06 02:32:42 +07:00
parent 4482c18923
commit eb569736f8
4 changed files with 0 additions and 112 deletions

View File

@@ -21,7 +21,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
IObservable<Label> GetAllForIssue(string owner, string name, int number); IObservable<Label> GetAllForIssue(string owner, string name, int number);
/// <summary> /// <summary>
@@ -32,7 +31,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
IObservable<Label> GetAllForIssue(int repositoryId, int number); IObservable<Label> GetAllForIssue(int repositoryId, int number);
/// <summary> /// <summary>
@@ -45,7 +43,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
IObservable<Label> GetAllForIssue(string owner, string name, int number, ApiOptions options); IObservable<Label> GetAllForIssue(string owner, string name, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -57,7 +54,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
IObservable<Label> GetAllForIssue(int repositoryId, int number, ApiOptions options); IObservable<Label> GetAllForIssue(int repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -68,7 +64,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <returns></returns>
IObservable<Label> GetAllForRepository(string owner, string name); IObservable<Label> GetAllForRepository(string owner, string name);
/// <summary> /// <summary>
@@ -78,7 +73,6 @@ namespace Octokit.Reactive
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information. /// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <returns></returns>
IObservable<Label> GetAllForRepository(int repositoryId); IObservable<Label> GetAllForRepository(int repositoryId);
/// <summary> /// <summary>
@@ -90,7 +84,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
IObservable<Label> GetAllForRepository(string owner, string name, ApiOptions options); IObservable<Label> GetAllForRepository(string owner, string name, ApiOptions options);
/// <summary> /// <summary>
@@ -101,7 +94,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
IObservable<Label> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<Label> GetAllForRepository(int repositoryId, ApiOptions options);
/// <summary> /// <summary>
@@ -113,7 +105,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
IObservable<Label> GetAllForMilestone(string owner, string name, int number); IObservable<Label> GetAllForMilestone(string owner, string name, int number);
/// <summary> /// <summary>
@@ -124,7 +115,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
IObservable<Label> GetAllForMilestone(int repositoryId, int number); IObservable<Label> GetAllForMilestone(int repositoryId, int number);
/// <summary> /// <summary>
@@ -137,7 +127,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
IObservable<Label> GetAllForMilestone(string owner, string name, int number, ApiOptions options); IObservable<Label> GetAllForMilestone(string owner, string name, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -149,7 +138,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
IObservable<Label> GetAllForMilestone(int repositoryId, int number, ApiOptions options); IObservable<Label> GetAllForMilestone(int repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -161,7 +149,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<Label> Get(string owner, string name, string labelName); IObservable<Label> Get(string owner, string name, string labelName);
@@ -174,7 +161,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<Label> Get(int repositoryId, string labelName); IObservable<Label> Get(int repositoryId, string labelName);
@@ -188,7 +174,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, string labelName); IObservable<Unit> Delete(string owner, string name, string labelName);
/// <summary> /// <summary>
@@ -199,7 +184,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
IObservable<Unit> Delete(int repositoryId, string labelName); IObservable<Unit> Delete(int repositoryId, string labelName);
/// <summary> /// <summary>
@@ -211,7 +195,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
IObservable<Label> Create(string owner, string name, NewLabel newLabel); IObservable<Label> Create(string owner, string name, NewLabel newLabel);
/// <summary> /// <summary>
@@ -222,7 +205,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
IObservable<Label> Create(int repositoryId, NewLabel newLabel); IObservable<Label> Create(int repositoryId, NewLabel newLabel);
/// <summary> /// <summary>
@@ -235,7 +217,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
IObservable<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate); IObservable<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate);
/// <summary> /// <summary>
@@ -247,7 +228,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
IObservable<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate); IObservable<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate);
/// <summary> /// <summary>
@@ -260,7 +240,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
IObservable<Label> AddToIssue(string owner, string name, int number, string[] labels); IObservable<Label> AddToIssue(string owner, string name, int number, string[] labels);
/// <summary> /// <summary>
@@ -272,7 +251,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
IObservable<Label> AddToIssue(int repositoryId, int number, string[] labels); IObservable<Label> AddToIssue(int repositoryId, int number, string[] labels);
/// <summary> /// <summary>
@@ -285,7 +263,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
IObservable<Unit> RemoveFromIssue(string owner, string name, int number, string labelName); IObservable<Unit> RemoveFromIssue(string owner, string name, int number, string labelName);
/// <summary> /// <summary>
@@ -297,7 +274,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
IObservable<Unit> RemoveFromIssue(int repositoryId, int number, string labelName); IObservable<Unit> RemoveFromIssue(int repositoryId, int number, string labelName);
/// <summary> /// <summary>
@@ -310,7 +286,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
IObservable<Label> ReplaceAllForIssue(string owner, string name, int number, string[] labels); IObservable<Label> ReplaceAllForIssue(string owner, string name, int number, string[] labels);
/// <summary> /// <summary>
@@ -322,7 +297,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
IObservable<Label> ReplaceAllForIssue(int repositoryId, int number, string[] labels); IObservable<Label> ReplaceAllForIssue(int repositoryId, int number, string[] labels);
/// <summary> /// <summary>
@@ -334,7 +308,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
IObservable<Unit> RemoveAllFromIssue(string owner, string name, int number); IObservable<Unit> RemoveAllFromIssue(string owner, string name, int number);
/// <summary> /// <summary>
@@ -345,7 +318,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
IObservable<Unit> RemoveAllFromIssue(int repositoryId, int number); IObservable<Unit> RemoveAllFromIssue(int repositoryId, int number);
} }
} }

View File

@@ -34,7 +34,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public IObservable<Label> GetAllForIssue(string owner, string name, int number) public IObservable<Label> GetAllForIssue(string owner, string name, int number)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -51,7 +50,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public IObservable<Label> GetAllForIssue(int repositoryId, int number) public IObservable<Label> GetAllForIssue(int repositoryId, int number)
{ {
return GetAllForIssue(repositoryId, number, ApiOptions.None); return GetAllForIssue(repositoryId, number, ApiOptions.None);
@@ -67,7 +65,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public IObservable<Label> GetAllForIssue(string owner, string name, int number, ApiOptions options) public IObservable<Label> GetAllForIssue(string owner, string name, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -86,7 +83,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public IObservable<Label> GetAllForIssue(int repositoryId, int number, ApiOptions options) public IObservable<Label> GetAllForIssue(int repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -102,7 +98,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <returns></returns>
public IObservable<Label> GetAllForRepository(string owner, string name) public IObservable<Label> GetAllForRepository(string owner, string name)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -118,7 +113,6 @@ namespace Octokit.Reactive
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information. /// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <returns></returns>
public IObservable<Label> GetAllForRepository(int repositoryId) public IObservable<Label> GetAllForRepository(int repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
@@ -133,7 +127,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public IObservable<Label> GetAllForRepository(string owner, string name, ApiOptions options) public IObservable<Label> GetAllForRepository(string owner, string name, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -151,7 +144,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public IObservable<Label> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<Label> GetAllForRepository(int repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -168,7 +160,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
public IObservable<Label> GetAllForMilestone(string owner, string name, int number) public IObservable<Label> GetAllForMilestone(string owner, string name, int number)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -185,7 +176,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
public IObservable<Label> GetAllForMilestone(int repositoryId, int number) public IObservable<Label> GetAllForMilestone(int repositoryId, int number)
{ {
return GetAllForMilestone(repositoryId, number, ApiOptions.None); return GetAllForMilestone(repositoryId, number, ApiOptions.None);
@@ -201,7 +191,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public IObservable<Label> GetAllForMilestone(string owner, string name, int number, ApiOptions options) public IObservable<Label> GetAllForMilestone(string owner, string name, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -220,7 +209,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public IObservable<Label> GetAllForMilestone(int repositoryId, int number, ApiOptions options) public IObservable<Label> GetAllForMilestone(int repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -237,7 +225,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public IObservable<Label> Get(string owner, string name, string labelName) public IObservable<Label> Get(string owner, string name, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -255,7 +242,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public IObservable<Label> Get(int repositoryId, string labelName) public IObservable<Label> Get(int repositoryId, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -272,7 +258,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public IObservable<Unit> Delete(string owner, string name, string labelName) public IObservable<Unit> Delete(string owner, string name, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -290,7 +275,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public IObservable<Unit> Delete(int repositoryId, string labelName) public IObservable<Unit> Delete(int repositoryId, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -307,7 +291,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
public IObservable<Label> Create(string owner, string name, NewLabel newLabel) public IObservable<Label> Create(string owner, string name, NewLabel newLabel)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -325,7 +308,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
public IObservable<Label> Create(int repositoryId, NewLabel newLabel) public IObservable<Label> Create(int repositoryId, NewLabel newLabel)
{ {
Ensure.ArgumentNotNull(newLabel, "newLabel"); Ensure.ArgumentNotNull(newLabel, "newLabel");
@@ -343,7 +325,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
public IObservable<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate) public IObservable<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -363,7 +344,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
public IObservable<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate) public IObservable<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -382,7 +362,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
public IObservable<Label> AddToIssue(string owner, string name, int number, string[] labels) public IObservable<Label> AddToIssue(string owner, string name, int number, string[] labels)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -403,7 +382,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
public IObservable<Label> AddToIssue(int repositoryId, int number, string[] labels) public IObservable<Label> AddToIssue(int repositoryId, int number, string[] labels)
{ {
Ensure.ArgumentNotNull(labels, "labels"); Ensure.ArgumentNotNull(labels, "labels");
@@ -423,7 +401,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
public IObservable<Unit> RemoveFromIssue(string owner, string name, int number, string labelName) public IObservable<Unit> RemoveFromIssue(string owner, string name, int number, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -442,7 +419,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
public IObservable<Unit> RemoveFromIssue(int repositoryId, int number, string labelName) public IObservable<Unit> RemoveFromIssue(int repositoryId, int number, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -460,7 +436,6 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
public IObservable<Label> ReplaceAllForIssue(string owner, string name, int number, string[] labels) public IObservable<Label> ReplaceAllForIssue(string owner, string name, int number, string[] labels)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -481,7 +456,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
public IObservable<Label> ReplaceAllForIssue(int repositoryId, int number, string[] labels) public IObservable<Label> ReplaceAllForIssue(int repositoryId, int number, string[] labels)
{ {
Ensure.ArgumentNotNull(labels, "labels"); Ensure.ArgumentNotNull(labels, "labels");
@@ -500,7 +474,6 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public IObservable<Unit> RemoveAllFromIssue(string owner, string name, int number) public IObservable<Unit> RemoveAllFromIssue(string owner, string name, int number)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -517,7 +490,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public IObservable<Unit> RemoveAllFromIssue(int repositoryId, int number) public IObservable<Unit> RemoveAllFromIssue(int repositoryId, int number)
{ {
return _client.RemoveAllFromIssue(repositoryId, number).ToObservable(); return _client.RemoveAllFromIssue(repositoryId, number).ToObservable();

View File

@@ -21,7 +21,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number); Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number);
/// <summary> /// <summary>
@@ -32,7 +31,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number); Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number);
/// <summary> /// <summary>
@@ -45,7 +43,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number, ApiOptions options); Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -57,7 +54,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number, ApiOptions options); Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -68,7 +64,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name); Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name);
/// <summary> /// <summary>
@@ -78,7 +73,6 @@ namespace Octokit
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information. /// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId); Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId);
/// <summary> /// <summary>
@@ -90,7 +84,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name, ApiOptions options); Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name, ApiOptions options);
/// <summary> /// <summary>
@@ -101,7 +94,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId, ApiOptions options); Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId, ApiOptions options);
/// <summary> /// <summary>
@@ -113,7 +105,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number); Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number);
/// <summary> /// <summary>
@@ -124,7 +115,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number); Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number);
/// <summary> /// <summary>
@@ -137,7 +127,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number, ApiOptions options); Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -149,7 +138,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number, ApiOptions options); Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
@@ -161,7 +149,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
Task<Label> Get(string owner, string name, string labelName); Task<Label> Get(string owner, string name, string labelName);
@@ -174,7 +161,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
Task<Label> Get(int repositoryId, string labelName); Task<Label> Get(int repositoryId, string labelName);
@@ -188,7 +174,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
Task Delete(string owner, string name, string labelName); Task Delete(string owner, string name, string labelName);
/// <summary> /// <summary>
@@ -199,7 +184,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
Task Delete(int repositoryId, string labelName); Task Delete(int repositoryId, string labelName);
/// <summary> /// <summary>
@@ -211,7 +195,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
Task<Label> Create(string owner, string name, NewLabel newLabel); Task<Label> Create(string owner, string name, NewLabel newLabel);
/// <summary> /// <summary>
@@ -222,7 +205,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
Task<Label> Create(int repositoryId, NewLabel newLabel); Task<Label> Create(int repositoryId, NewLabel newLabel);
/// <summary> /// <summary>
@@ -235,7 +217,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
Task<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate); Task<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate);
/// <summary> /// <summary>
@@ -247,7 +228,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
Task<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate); Task<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate);
/// <summary> /// <summary>
@@ -260,7 +240,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> AddToIssue(string owner, string name, int number, string[] labels); Task<IReadOnlyList<Label>> AddToIssue(string owner, string name, int number, string[] labels);
/// <summary> /// <summary>
@@ -272,7 +251,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> AddToIssue(int repositoryId, int number, string[] labels); Task<IReadOnlyList<Label>> AddToIssue(int repositoryId, int number, string[] labels);
/// <summary> /// <summary>
@@ -285,7 +263,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
Task RemoveFromIssue(string owner, string name, int number, string labelName); Task RemoveFromIssue(string owner, string name, int number, string labelName);
/// <summary> /// <summary>
@@ -297,7 +274,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
Task RemoveFromIssue(int repositoryId, int number, string labelName); Task RemoveFromIssue(int repositoryId, int number, string labelName);
/// <summary> /// <summary>
@@ -310,7 +286,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> ReplaceAllForIssue(string owner, string name, int number, string[] labels); Task<IReadOnlyList<Label>> ReplaceAllForIssue(string owner, string name, int number, string[] labels);
/// <summary> /// <summary>
@@ -322,7 +297,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
Task<IReadOnlyList<Label>> ReplaceAllForIssue(int repositoryId, int number, string[] labels); Task<IReadOnlyList<Label>> ReplaceAllForIssue(int repositoryId, int number, string[] labels);
/// <summary> /// <summary>
@@ -334,7 +308,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
Task RemoveAllFromIssue(string owner, string name, int number); Task RemoveAllFromIssue(string owner, string name, int number);
/// <summary> /// <summary>
@@ -345,7 +318,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
Task RemoveAllFromIssue(int repositoryId, int number); Task RemoveAllFromIssue(int repositoryId, int number);
} }
} }

View File

@@ -25,7 +25,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number) public Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -42,7 +41,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number) public Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number)
{ {
return GetAllForIssue(repositoryId, number, ApiOptions.None); return GetAllForIssue(repositoryId, number, ApiOptions.None);
@@ -58,7 +56,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number, ApiOptions options) public Task<IReadOnlyList<Label>> GetAllForIssue(string owner, string name, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -77,7 +74,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number, ApiOptions options) public Task<IReadOnlyList<Label>> GetAllForIssue(int repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -93,7 +89,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name) public Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -109,7 +104,6 @@ namespace Octokit
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information. /// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId) public Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
@@ -124,7 +118,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name, ApiOptions options) public Task<IReadOnlyList<Label>> GetAllForRepository(string owner, string name, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -142,7 +135,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId, ApiOptions options) public Task<IReadOnlyList<Label>> GetAllForRepository(int repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -159,7 +151,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number) public Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -176,7 +167,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number) public Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number)
{ {
return GetAllForMilestone(repositoryId, number, ApiOptions.None); return GetAllForMilestone(repositoryId, number, ApiOptions.None);
@@ -192,7 +182,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number, ApiOptions options) public Task<IReadOnlyList<Label>> GetAllForMilestone(string owner, string name, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -211,7 +200,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number, ApiOptions options) public Task<IReadOnlyList<Label>> GetAllForMilestone(int repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -228,7 +216,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public Task<Label> Get(string owner, string name, string labelName) public Task<Label> Get(string owner, string name, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -246,7 +233,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public Task<Label> Get(int repositoryId, string labelName) public Task<Label> Get(int repositoryId, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -263,7 +249,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public Task Delete(string owner, string name, string labelName) public Task Delete(string owner, string name, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -281,7 +266,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <returns></returns>
public Task Delete(int repositoryId, string labelName) public Task Delete(int repositoryId, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -298,7 +282,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
public Task<Label> Create(string owner, string name, NewLabel newLabel) public Task<Label> Create(string owner, string name, NewLabel newLabel)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -316,7 +299,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
/// <returns></returns>
public Task<Label> Create(int repositoryId, NewLabel newLabel) public Task<Label> Create(int repositoryId, NewLabel newLabel)
{ {
Ensure.ArgumentNotNull(newLabel, "newLabel"); Ensure.ArgumentNotNull(newLabel, "newLabel");
@@ -334,7 +316,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
public Task<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate) public Task<Label> Update(string owner, string name, string labelName, LabelUpdate labelUpdate)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -354,7 +335,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
/// <returns></returns>
public Task<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate) public Task<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -373,7 +353,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> AddToIssue(string owner, string name, int number, string[] labels) public Task<IReadOnlyList<Label>> AddToIssue(string owner, string name, int number, string[] labels)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -392,7 +371,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> AddToIssue(int repositoryId, int number, string[] labels) public Task<IReadOnlyList<Label>> AddToIssue(int repositoryId, int number, string[] labels)
{ {
Ensure.ArgumentNotNull(labels, "labels"); Ensure.ArgumentNotNull(labels, "labels");
@@ -410,7 +388,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
public Task RemoveFromIssue(string owner, string name, int number, string labelName) public Task RemoveFromIssue(string owner, string name, int number, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -429,7 +406,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
/// <returns></returns>
public Task RemoveFromIssue(int repositoryId, int number, string labelName) public Task RemoveFromIssue(int repositoryId, int number, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -447,7 +423,6 @@ namespace Octokit
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> ReplaceAllForIssue(string owner, string name, int number, string[] labels) public Task<IReadOnlyList<Label>> ReplaceAllForIssue(string owner, string name, int number, string[] labels)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -466,7 +441,6 @@ namespace Octokit
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
/// <returns></returns>
public Task<IReadOnlyList<Label>> ReplaceAllForIssue(int repositoryId, int number, string[] labels) public Task<IReadOnlyList<Label>> ReplaceAllForIssue(int repositoryId, int number, string[] labels)
{ {
Ensure.ArgumentNotNull(labels, "labels"); Ensure.ArgumentNotNull(labels, "labels");
@@ -483,7 +457,6 @@ namespace Octokit
/// <param name="owner">The owner of the repository</param> /// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param> /// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public Task RemoveAllFromIssue(string owner, string name, int number) public Task RemoveAllFromIssue(string owner, string name, int number)
{ {
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
@@ -500,7 +473,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <returns></returns>
public Task RemoveAllFromIssue(int repositoryId, int number) public Task RemoveAllFromIssue(int repositoryId, int number)
{ {
return ApiConnection.Delete(ApiUrls.IssueLabels(repositoryId, number)); return ApiConnection.Delete(ApiUrls.IssueLabels(repositoryId, number));