mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-23 07:35:25 +00:00
Add Member property to observable Orgs client
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
IObservable<Activity> GetUserReceived(string user);
|
IObservable<Activity> GetUserReceived(string user);
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
IObservable<Activity> GetUserReceivedPublic(string user);
|
IObservable<Activity> GetUserReceivedPublic(string user);
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
IObservable<Activity> GetUserPerformed(string user);
|
IObservable<Activity> GetUserPerformed(string user);
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
IObservable<Activity> GetUserPerformedPublic(string user);
|
IObservable<Activity> GetUserPerformedPublic(string user);
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <param name="organization">The name of the organization</param>
|
/// <param name="organization">The name of the organization</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||||
IObservable<Activity> GetForAnOrganization(string user, string organization);
|
IObservable<Activity> GetForAnOrganization(string user, string organization);
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Reactive;
|
using System.Reactive;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Octokit.Reactive
|
namespace Octokit.Reactive
|
||||||
{
|
{
|
||||||
@@ -27,7 +23,7 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<User> GetAll(string org);
|
IObservable<User> GetAll(string org);
|
||||||
|
|
||||||
@@ -35,7 +31,7 @@ namespace Octokit.Reactive
|
|||||||
/// List all users who have publicized their membership of the organization.
|
/// List all users who have publicized their membership of the organization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<User> GetPublic(string org);
|
IObservable<User> GetPublic(string org);
|
||||||
|
|
||||||
@@ -46,8 +42,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<bool> CheckMember(string org, string user);
|
IObservable<bool> CheckMember(string org, string user);
|
||||||
|
|
||||||
@@ -58,8 +54,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<bool> CheckMemberPublic(string org, string user);
|
IObservable<bool> CheckMemberPublic(string org, string user);
|
||||||
|
|
||||||
@@ -72,8 +68,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<Unit> Delete(string org, string user);
|
IObservable<Unit> Delete(string org, string user);
|
||||||
|
|
||||||
@@ -85,8 +81,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<bool> Publicize(string org, string user);
|
IObservable<bool> Publicize(string org, string user);
|
||||||
|
|
||||||
@@ -98,8 +94,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<Unit> Conceal(string org, string user);
|
IObservable<Unit> Conceal(string org, string user);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ namespace Octokit.Reactive
|
|||||||
{
|
{
|
||||||
public interface IObservableOrganizationsClient
|
public interface IObservableOrganizationsClient
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a client to manage members of an organization.
|
||||||
|
/// </summary>
|
||||||
|
IObservableOrganizationMembersClient Member { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the specified organization.
|
/// Returns the specified organization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -25,7 +30,7 @@ namespace Octokit.Reactive
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns all the organizations for the specified user
|
/// Returns all the organizations for the specified user
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<Organization> GetAll(string user);
|
IObservable<Organization> GetAll(string user);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace Octokit.Reactive
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update the specified <see cref="UserUpdate"/>.
|
/// Update the specified <see cref="UserUpdate"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
||||||
/// <returns>A <see cref="User"/></returns>
|
/// <returns>A <see cref="User"/></returns>
|
||||||
IObservable<User> Update(UserUpdate user);
|
IObservable<User> Update(UserUpdate user);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
public IObservable<Activity> GetUserReceived(string user)
|
public IObservable<Activity> GetUserReceived(string user)
|
||||||
{
|
{
|
||||||
@@ -96,7 +96,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
public IObservable<Activity> GetUserReceivedPublic(string user)
|
public IObservable<Activity> GetUserReceivedPublic(string user)
|
||||||
{
|
{
|
||||||
@@ -111,7 +111,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
public IObservable<Activity> GetUserPerformed(string user)
|
public IObservable<Activity> GetUserPerformed(string user)
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
public IObservable<Activity> GetUserPerformedPublic(string user)
|
public IObservable<Activity> GetUserPerformedPublic(string user)
|
||||||
{
|
{
|
||||||
@@ -141,7 +141,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <param name="organization">The name of the organization</param>
|
/// <param name="organization">The name of the organization</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||||
public IObservable<Activity> GetForAnOrganization(string user, string organization)
|
public IObservable<Activity> GetForAnOrganization(string user, string organization)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Reactive;
|
using System.Reactive;
|
||||||
using System.Reactive.Threading.Tasks;
|
using System.Reactive.Threading.Tasks;
|
||||||
using Octokit.Reactive.Internal;
|
using Octokit.Reactive.Internal;
|
||||||
@@ -11,6 +10,10 @@ namespace Octokit.Reactive
|
|||||||
readonly IOrganizationMembersClient _client;
|
readonly IOrganizationMembersClient _client;
|
||||||
readonly IConnection _connection;
|
readonly IConnection _connection;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new Organization Members API client.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client">An <see cref="IGitHubClient" /> used to make the requests</param>
|
||||||
public ObservableOrganizationMembersClient(IGitHubClient client)
|
public ObservableOrganizationMembersClient(IGitHubClient client)
|
||||||
{
|
{
|
||||||
Ensure.ArgumentNotNull(client, "client");
|
Ensure.ArgumentNotNull(client, "client");
|
||||||
@@ -37,7 +40,7 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<User> GetAll(string org)
|
public IObservable<User> GetAll(string org)
|
||||||
{
|
{
|
||||||
@@ -50,7 +53,7 @@ namespace Octokit.Reactive
|
|||||||
/// List all users who have publicized their membership of the organization.
|
/// List all users who have publicized their membership of the organization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<User> GetPublic(string org)
|
public IObservable<User> GetPublic(string org)
|
||||||
{
|
{
|
||||||
@@ -66,8 +69,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<bool> CheckMember(string org, string user)
|
public IObservable<bool> CheckMember(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -84,8 +87,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<bool> CheckMemberPublic(string org, string user)
|
public IObservable<bool> CheckMemberPublic(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -104,8 +107,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<Unit> Delete(string org, string user)
|
public IObservable<Unit> Delete(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -123,8 +126,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<bool> Publicize(string org, string user)
|
public IObservable<bool> Publicize(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -142,8 +145,8 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<Unit> Conceal(string org, string user)
|
public IObservable<Unit> Conceal(string org, string user)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,14 +9,30 @@ namespace Octokit.Reactive
|
|||||||
readonly IOrganizationsClient _client;
|
readonly IOrganizationsClient _client;
|
||||||
readonly IConnection _connection;
|
readonly IConnection _connection;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new Organization API client.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client">An <see cref="IGitHubClient" /> used to make the requests</param>
|
||||||
public ObservableOrganizationsClient(IGitHubClient client)
|
public ObservableOrganizationsClient(IGitHubClient client)
|
||||||
{
|
{
|
||||||
Ensure.ArgumentNotNull(client, "client");
|
Ensure.ArgumentNotNull(client, "client");
|
||||||
|
|
||||||
|
Member = new ObservableOrganizationMembersClient(client);
|
||||||
|
|
||||||
_client = client.Organization;
|
_client = client.Organization;
|
||||||
_connection = client.Connection;
|
_connection = client.Connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a client to manage members of an organization.
|
||||||
|
/// </summary>
|
||||||
|
public IObservableOrganizationMembersClient Member { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the specified organization.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="org">The login of the specified organization,</param>
|
||||||
|
/// <returns></returns>
|
||||||
public IObservable<Organization> Get(string org)
|
public IObservable<Organization> Get(string org)
|
||||||
{
|
{
|
||||||
Ensure.ArgumentNotNullOrEmptyString(org, "org");
|
Ensure.ArgumentNotNullOrEmptyString(org, "org");
|
||||||
@@ -24,11 +40,20 @@ namespace Octokit.Reactive
|
|||||||
return _client.Get(org).ToObservable();
|
return _client.Get(org).ToObservable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns all the organizations for the current user.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
public IObservable<Organization> GetAllForCurrent()
|
public IObservable<Organization> GetAllForCurrent()
|
||||||
{
|
{
|
||||||
return _connection.GetAndFlattenAllPages<Organization>(ApiUrls.Organizations());
|
return _connection.GetAndFlattenAllPages<Organization>(ApiUrls.Organizations());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns all the organizations for the specified user
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">The login for the user.</param>
|
||||||
|
/// <returns></returns>
|
||||||
public IObservable<Organization> GetAll(string user)
|
public IObservable<Organization> GetAll(string user)
|
||||||
{
|
{
|
||||||
Ensure.ArgumentNotNullOrEmptyString(user, "user");
|
Ensure.ArgumentNotNullOrEmptyString(user, "user");
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
public Task<IReadOnlyList<Activity>> GetUserReceived(string user)
|
public Task<IReadOnlyList<Activity>> GetUserReceived(string user)
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
public Task<IReadOnlyList<Activity>> GetUserReceivedPublic(string user)
|
public Task<IReadOnlyList<Activity>> GetUserReceivedPublic(string user)
|
||||||
{
|
{
|
||||||
@@ -107,7 +107,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
public Task<IReadOnlyList<Activity>> GetUserPerformed(string user)
|
public Task<IReadOnlyList<Activity>> GetUserPerformed(string user)
|
||||||
{
|
{
|
||||||
@@ -122,7 +122,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
public Task<IReadOnlyList<Activity>> GetUserPerformedPublic(string user)
|
public Task<IReadOnlyList<Activity>> GetUserPerformedPublic(string user)
|
||||||
{
|
{
|
||||||
@@ -137,7 +137,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <param name="organization">The name of the organization</param>
|
/// <param name="organization">The name of the organization</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||||
public Task<IReadOnlyList<Activity>> GetForAnOrganization(string user, string organization)
|
public Task<IReadOnlyList<Activity>> GetForAnOrganization(string user, string organization)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
Task<IReadOnlyList<Activity>> GetUserReceived(string user);
|
Task<IReadOnlyList<Activity>> GetUserReceived(string user);
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has received.</returns>
|
||||||
Task<IReadOnlyList<Activity>> GetUserReceivedPublic(string user);
|
Task<IReadOnlyList<Activity>> GetUserReceivedPublic(string user);
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
Task<IReadOnlyList<Activity>> GetUserPerformed(string user);
|
Task<IReadOnlyList<Activity>> GetUserPerformed(string user);
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that a particular user has performed.</returns>
|
||||||
Task<IReadOnlyList<Activity>> GetUserPerformedPublic(string user);
|
Task<IReadOnlyList<Activity>> GetUserPerformedPublic(string user);
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ namespace Octokit
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <param name="organization">The name of the organization</param>
|
/// <param name="organization">The name of the organization</param>
|
||||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||||
Task<IReadOnlyList<Activity>> GetForAnOrganization(string user, string organization);
|
Task<IReadOnlyList<Activity>> GetForAnOrganization(string user, string organization);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<IReadOnlyList<User>> GetAll(string org);
|
Task<IReadOnlyList<User>> GetAll(string org);
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ namespace Octokit
|
|||||||
/// List all users who have publicized their membership of the organization.
|
/// List all users who have publicized their membership of the organization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<IReadOnlyList<User>> GetPublic(string org);
|
Task<IReadOnlyList<User>> GetPublic(string org);
|
||||||
|
|
||||||
@@ -42,8 +42,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<bool> CheckMember(string org, string user);
|
Task<bool> CheckMember(string org, string user);
|
||||||
|
|
||||||
@@ -54,8 +54,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<bool> CheckMemberPublic(string org, string user);
|
Task<bool> CheckMemberPublic(string org, string user);
|
||||||
|
|
||||||
@@ -68,8 +68,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task Delete(string org, string user);
|
Task Delete(string org, string user);
|
||||||
|
|
||||||
@@ -81,8 +81,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<bool> Publicize(string org, string user);
|
Task<bool> Publicize(string org, string user);
|
||||||
|
|
||||||
@@ -94,8 +94,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task Conceal(string org, string user);
|
Task Conceal(string org, string user);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ namespace Octokit
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
public interface IOrganizationsClient
|
public interface IOrganizationsClient
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a client to manage members of an organization.
|
||||||
|
/// </summary>
|
||||||
IOrganizationMembersClient Member { get; }
|
IOrganizationMembersClient Member { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace Octokit
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update the specified <see cref="UserUpdate"/>.
|
/// Update the specified <see cref="UserUpdate"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
||||||
/// <returns>A <see cref="User"/></returns>
|
/// <returns>A <see cref="User"/></returns>
|
||||||
Task<User> Update(UserUpdate user);
|
Task<User> Update(UserUpdate user);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#members-list">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Task<IReadOnlyList<User>> GetAll(string org)
|
public Task<IReadOnlyList<User>> GetAll(string org)
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ namespace Octokit
|
|||||||
/// List all users who have publicized their membership of the organization.
|
/// List all users who have publicized their membership of the organization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
/// <remarks>http://developer.github.com/v3/orgs/members/#public-members-list</remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Task<IReadOnlyList<User>> GetPublic(string org)
|
public Task<IReadOnlyList<User>> GetPublic(string org)
|
||||||
{
|
{
|
||||||
@@ -61,8 +61,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<bool> CheckMember(string org, string user)
|
public async Task<bool> CheckMember(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -94,8 +94,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#check-public-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<bool> CheckMemberPublic(string org, string user)
|
public async Task<bool> CheckMemberPublic(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -128,8 +128,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#remove-a-member">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Task Delete(string org, string user)
|
public Task Delete(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -147,8 +147,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#publicize-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<bool> Publicize(string org, string user)
|
public async Task<bool> Publicize(string org, string user)
|
||||||
{
|
{
|
||||||
@@ -180,8 +180,8 @@ namespace Octokit
|
|||||||
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
/// See the <a href="http://developer.github.com/v3/orgs/members/#conceal-a-users-membership">API documentation</a>
|
||||||
/// for more information.
|
/// for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="org"></param>
|
/// <param name="org">The login for the organization.</param>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Task Conceal(string org, string user)
|
public Task Conceal(string org, string user)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Octokit
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update the specified <see cref="UserUpdate"/>.
|
/// Update the specified <see cref="UserUpdate"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user"></param>
|
/// <param name="user">The login for the user.</param>
|
||||||
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
||||||
/// <returns>A <see cref="User"/></returns>
|
/// <returns>A <see cref="User"/></returns>
|
||||||
public Task<User> Update(UserUpdate user)
|
public Task<User> Update(UserUpdate user)
|
||||||
|
|||||||
@@ -433,7 +433,7 @@ namespace Octokit
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the <see cref="Uri"/> for the received events for a user.
|
/// Returns the <see cref="Uri"/> for the received events for a user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static Uri ReceivedEvents(string user)
|
public static Uri ReceivedEvents(string user)
|
||||||
{
|
{
|
||||||
@@ -443,7 +443,7 @@ namespace Octokit
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the <see cref="Uri"/> for the received events for a user.
|
/// Returns the <see cref="Uri"/> for the received events for a user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <param name="isPublic">Whether to return public events or not</param>
|
/// <param name="isPublic">Whether to return public events or not</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static Uri ReceivedEvents(string user, bool isPublic)
|
public static Uri ReceivedEvents(string user, bool isPublic)
|
||||||
@@ -459,7 +459,7 @@ namespace Octokit
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the <see cref="Uri"/> for events performed by a user.
|
/// Returns the <see cref="Uri"/> for events performed by a user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static Uri PerformedEvents(string user)
|
public static Uri PerformedEvents(string user)
|
||||||
{
|
{
|
||||||
@@ -469,7 +469,7 @@ namespace Octokit
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the <see cref="Uri"/> for events performed by a user.
|
/// Returns the <see cref="Uri"/> for events performed by a user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <param name="isPublic">Whether to return public events or not</param>
|
/// <param name="isPublic">Whether to return public events or not</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static Uri PerformedEvents(string user, bool isPublic)
|
public static Uri PerformedEvents(string user, bool isPublic)
|
||||||
@@ -485,7 +485,7 @@ namespace Octokit
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the <see cref="Uri"/> for events associated with an organization.
|
/// Returns the <see cref="Uri"/> for events associated with an organization.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The name of the user</param>
|
/// <param name="user">The login of the user</param>
|
||||||
/// <param name="organization">The name of the organization</param>
|
/// <param name="organization">The name of the organization</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static Uri OrganizationEvents(string user, string organization)
|
public static Uri OrganizationEvents(string user, string organization)
|
||||||
|
|||||||
Reference in New Issue
Block a user