Exemple #1
0
        /// <summary>
        /// Deletes a collaborator from the repository.
        /// </summary>
        /// <remarks>
        /// See the <a href="http://developer.github.com/v3/repos/collaborators/#list">API documentation</a> for more information.
        /// </remarks>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <param name="user">Username of the deleted collaborator</param>
        /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
        public IObservable <Unit> Delete(string owner, string name, string user)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
            Ensure.ArgumentNotNullOrEmptyString(user, nameof(user));

            return(_client.Delete(owner, name, user).ToObservable());
        }
Exemple #2
0
 /// <summary>
 /// Removes a user as a collaborator for a repository.
 /// </summary>
 /// <param name="owner">The owner of the repository</param>
 /// <param name="repo">The name of the repository</param>
 /// <param name="user">Username of the prospective collaborator</param>
 /// <returns></returns>
 public IObservable <Unit> Delete(string owner, string repo, string user)
 {
     return(_client.Delete(owner, repo, user).ToObservable());
 }