using System; using System.Reactive; namespace Octokit.Reactive { public interface IObservableOrganizationMembersClient { /// /// /// List all users who are members of an organization. A member is a user that /// belongs to at least 1 team in the organization. /// /// /// If the authenticated user is also an owner of this organization then both /// concealed and public member will be returned. /// /// /// If the requester is not an owner of the organization the query will be redirected /// to the public members list. /// /// /// /// See the API documentation /// for more information. /// /// The login for the organization /// IObservable GetAll(string org); /// /// /// List all users who are members of an organization. A member is a user that /// belongs to at least 1 team in the organization. /// /// /// If the authenticated user is also an owner of this organization then both /// concealed and public member will be returned. /// /// /// If the requester is not an owner of the organization the query will be redirected /// to the public members list. /// /// /// /// See the API documentation /// for more information. /// /// The login for the organization /// The members filter, /// IObservable GetAll(string org, OrganizationMembersFilter filter); /// /// Obsolete, /// /// The login for the organization /// The user filter /// The users [Obsolete("No longer supported, use GetAll(string, OrganizationMembersFilter) instead")] IObservable GetAll(string org, string filter); /// /// /// List all users who are members of an organization. A member is a user that /// belongs to at least 1 team in the organization. /// /// /// If the authenticated user is also an owner of this organization then both /// concealed and public member will be returned. /// /// /// If the requester is not an owner of the organization the query will be redirected /// to the public members list. /// /// /// /// See the API documentation /// for more information. /// /// The login for the organization /// The role filter to use when getting the users, /// IObservable GetAll(string org, OrganizationMembersRole role); /// /// /// List all users who are members of an organization. A member is a user that /// belongs to at least 1 team in the organization. /// /// /// If the authenticated user is also an owner of this organization then both /// concealed and public member will be returned. /// /// /// If the requester is not an owner of the organization the query will be redirected /// to the public members list. /// /// /// /// See the API documentation /// for more information. /// /// The login for the organization /// The members filter, /// The role filter to use when getting the users, /// IObservable GetAll(string org, OrganizationMembersFilter filter, OrganizationMembersRole role); /// /// List all users who have publicized their membership of the organization. /// /// http://developer.github.com/v3/orgs/members/#public-members-list /// The login for the organization /// IObservable GetAllPublic(string org); /// /// Check if a user is, publicly or privately, a member of the organization. /// /// /// See the API documentation /// for more information. /// /// The login for the organization /// The login for the user /// IObservable CheckMember(string org, string user); /// /// Check is a user is publicly a member of the organization. /// /// /// See the API documentation /// for more information. /// /// The login for the organization /// The login for the user /// IObservable CheckMemberPublic(string org, string user); /// /// Removes a user from the organization, this will also remove them from all teams /// within the organization and they will no longer have any access to the organization's /// repositories. /// /// /// See the API documentation /// for more information. /// /// The login for the organization /// The login for the user /// IObservable Delete(string org, string user); /// /// Make the authenticated user's organization membership public. /// /// /// This method requires authentication. /// See the API documentation /// for more information. /// /// The login for the organization /// The login for the user /// IObservable Publicize(string org, string user); /// /// Make the authenticated user's organization membership private. /// /// /// This method requries authentication. /// See the API documentation /// for more information. /// /// The login for the organization /// The login for the user /// IObservable Conceal(string org, string user); } }