mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-18 05:05:14 +00:00
34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Octokit.Reactive
|
|
{
|
|
public interface IObservableUsersClient
|
|
{
|
|
/// <summary>
|
|
/// Returns the user specified by the login.
|
|
/// </summary>
|
|
/// <param name="login">The login name for the user</param>
|
|
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
|
[SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "login")]
|
|
IObservable<User> Get(string login);
|
|
|
|
/// <summary>
|
|
/// Returns a <see cref="User"/> for the current authenticated user.
|
|
/// </summary>
|
|
/// <exception cref="AuthenticationException">Thrown if the client is not authenticated.</exception>
|
|
/// <returns>A <see cref="User"/></returns>
|
|
IObservable<User> Current();
|
|
|
|
/// <summary>
|
|
/// Update the specified <see cref="UserUpdate"/>.
|
|
/// </summary>
|
|
/// <param name="user"></param>
|
|
/// <exception cref="AuthenticationException">Thrown if the client is not authenticated.</exception>
|
|
/// <returns>A <see cref="User"/></returns>
|
|
IObservable<User> Update(UserUpdate user);
|
|
}
|
|
}
|