mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
Copy comments from base
This commit is contained in:
@@ -17,6 +17,10 @@ namespace Octokit.Reactive
|
||||
_connection = client.Connection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the user specified by the login.
|
||||
/// </summary>
|
||||
/// <param name="login">The login name for the user</param>
|
||||
public IObservable<User> Get(string login)
|
||||
{
|
||||
Ensure.ArgumentNotNull(login, "login");
|
||||
@@ -24,11 +28,22 @@ namespace Octokit.Reactive
|
||||
return _client.Get(login).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a <see cref="User"/> for the current authenticated user.
|
||||
/// </summary>
|
||||
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
||||
/// <returns>A <see cref="User"/></returns>
|
||||
public IObservable<User> Current()
|
||||
{
|
||||
return _client.Current().ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update the specified <see cref="UserUpdate"/>.
|
||||
/// </summary>
|
||||
/// <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 IObservable<User> Update(UserUpdate user)
|
||||
{
|
||||
Ensure.ArgumentNotNull(user, "user");
|
||||
@@ -36,6 +51,10 @@ namespace Octokit.Reactive
|
||||
return _client.Update(user).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns emails for the current user.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IObservable<EmailAddress> GetEmails()
|
||||
{
|
||||
return _connection.GetAndFlattenAllPages<EmailAddress>(ApiUrls.Emails());
|
||||
|
||||
Reference in New Issue
Block a user