mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-22 23:25:24 +00:00
Add Member property to observable Orgs client
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||
/// </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>
|
||||
IObservable<Activity> GetUserReceived(string user);
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||
/// </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>
|
||||
IObservable<Activity> GetUserReceivedPublic(string user);
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||
/// </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>
|
||||
IObservable<Activity> GetUserPerformed(string user);
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||
/// </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>
|
||||
IObservable<Activity> GetUserPerformedPublic(string user);
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||
/// </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>
|
||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||
IObservable<Activity> GetForAnOrganization(string user, string organization);
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reactive;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <returns></returns>
|
||||
IObservable<User> GetAll(string org);
|
||||
|
||||
@@ -35,7 +31,7 @@ namespace Octokit.Reactive
|
||||
/// List all users who have publicized their membership of the organization.
|
||||
/// </summary>
|
||||
/// <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>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Conceal(string org, string user);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,11 @@ namespace Octokit.Reactive
|
||||
{
|
||||
public interface IObservableOrganizationsClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns a client to manage members of an organization.
|
||||
/// </summary>
|
||||
IObservableOrganizationMembersClient Member { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the specified organization.
|
||||
/// </summary>
|
||||
@@ -25,7 +30,7 @@ namespace Octokit.Reactive
|
||||
/// <summary>
|
||||
/// Returns all the organizations for the specified user
|
||||
/// </summary>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Organization> GetAll(string user);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Octokit.Reactive
|
||||
/// <summary>
|
||||
/// Update the specified <see cref="UserUpdate"/>.
|
||||
/// </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>
|
||||
/// <returns>A <see cref="User"/></returns>
|
||||
IObservable<User> Update(UserUpdate user);
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||
/// </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>
|
||||
public IObservable<Activity> GetUserReceived(string user)
|
||||
{
|
||||
@@ -96,7 +96,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||
/// </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>
|
||||
public IObservable<Activity> GetUserReceivedPublic(string user)
|
||||
{
|
||||
@@ -111,7 +111,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||
/// </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>
|
||||
public IObservable<Activity> GetUserPerformed(string user)
|
||||
{
|
||||
@@ -126,7 +126,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||
/// </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>
|
||||
public IObservable<Activity> GetUserPerformedPublic(string user)
|
||||
{
|
||||
@@ -141,7 +141,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||
/// </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>
|
||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||
public IObservable<Activity> GetForAnOrganization(string user, string organization)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
using Octokit.Reactive.Internal;
|
||||
@@ -11,6 +10,10 @@ namespace Octokit.Reactive
|
||||
readonly IOrganizationMembersClient _client;
|
||||
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)
|
||||
{
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<User> GetAll(string org)
|
||||
{
|
||||
@@ -50,7 +53,7 @@ namespace Octokit.Reactive
|
||||
/// List all users who have publicized their membership of the organization.
|
||||
/// </summary>
|
||||
/// <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>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Conceal(string org, string user)
|
||||
{
|
||||
|
||||
@@ -9,14 +9,30 @@ namespace Octokit.Reactive
|
||||
readonly IOrganizationsClient _client;
|
||||
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)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, "client");
|
||||
|
||||
Member = new ObservableOrganizationMembersClient(client);
|
||||
|
||||
_client = client.Organization;
|
||||
_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)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, "org");
|
||||
@@ -24,11 +40,20 @@ namespace Octokit.Reactive
|
||||
return _client.Get(org).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns all the organizations for the current user.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IObservable<Organization> GetAllForCurrent()
|
||||
{
|
||||
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)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(user, "user");
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||
/// </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>
|
||||
public Task<IReadOnlyList<Activity>> GetUserReceived(string user)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||
/// </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>
|
||||
public Task<IReadOnlyList<Activity>> GetUserReceivedPublic(string user)
|
||||
{
|
||||
@@ -107,7 +107,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||
/// </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>
|
||||
public Task<IReadOnlyList<Activity>> GetUserPerformed(string user)
|
||||
{
|
||||
@@ -122,7 +122,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||
/// </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>
|
||||
public Task<IReadOnlyList<Activity>> GetUserPerformedPublic(string user)
|
||||
{
|
||||
@@ -137,7 +137,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||
/// </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>
|
||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||
public Task<IReadOnlyList<Activity>> GetForAnOrganization(string user, string organization)
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
|
||||
/// </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>
|
||||
Task<IReadOnlyList<Activity>> GetUserReceived(string user);
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
|
||||
/// </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>
|
||||
Task<IReadOnlyList<Activity>> GetUserReceivedPublic(string user);
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
|
||||
/// </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>
|
||||
Task<IReadOnlyList<Activity>> GetUserPerformed(string user);
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
|
||||
/// </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>
|
||||
Task<IReadOnlyList<Activity>> GetUserPerformedPublic(string user);
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/activity/events/#list-events-for-an-organization
|
||||
/// </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>
|
||||
/// <returns>All the public <see cref="Activity"/>s that are associated with an organization.</returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <returns></returns>
|
||||
Task<IReadOnlyList<User>> GetAll(string org);
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Octokit
|
||||
/// List all users who have publicized their membership of the organization.
|
||||
/// </summary>
|
||||
/// <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>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
Task Conceal(string org, string user);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,9 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
public interface IOrganizationsClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns a client to manage members of an organization.
|
||||
/// </summary>
|
||||
IOrganizationMembersClient Member { get; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Update the specified <see cref="UserUpdate"/>.
|
||||
/// </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>
|
||||
/// <returns>A <see cref="User"/></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <returns></returns>
|
||||
public Task<IReadOnlyList<User>> GetAll(string org)
|
||||
{
|
||||
@@ -45,7 +45,7 @@ namespace Octokit
|
||||
/// List all users who have publicized their membership of the organization.
|
||||
/// </summary>
|
||||
/// <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>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
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>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="org">The login for the organization.</param>
|
||||
/// <param name="user">The login for the user.</param>
|
||||
/// <returns></returns>
|
||||
public Task Conceal(string org, string user)
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Update the specified <see cref="UserUpdate"/>.
|
||||
/// </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>
|
||||
/// <returns>A <see cref="User"/></returns>
|
||||
public Task<User> Update(UserUpdate user)
|
||||
|
||||
@@ -433,7 +433,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for the received events for a user.
|
||||
/// </summary>
|
||||
/// <param name="user">The name of the user</param>
|
||||
/// <param name="user">The login of the user</param>
|
||||
/// <returns></returns>
|
||||
public static Uri ReceivedEvents(string user)
|
||||
{
|
||||
@@ -443,7 +443,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for the received events for a user.
|
||||
/// </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>
|
||||
/// <returns></returns>
|
||||
public static Uri ReceivedEvents(string user, bool isPublic)
|
||||
@@ -459,7 +459,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for events performed by a user.
|
||||
/// </summary>
|
||||
/// <param name="user">The name of the user</param>
|
||||
/// <param name="user">The login of the user</param>
|
||||
/// <returns></returns>
|
||||
public static Uri PerformedEvents(string user)
|
||||
{
|
||||
@@ -469,7 +469,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for events performed by a user.
|
||||
/// </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>
|
||||
/// <returns></returns>
|
||||
public static Uri PerformedEvents(string user, bool isPublic)
|
||||
@@ -485,7 +485,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for events associated with an organization.
|
||||
/// </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>
|
||||
/// <returns></returns>
|
||||
public static Uri OrganizationEvents(string user, string organization)
|
||||
|
||||
Reference in New Issue
Block a user