Copy comments from base

This commit is contained in:
=
2013-11-08 13:30:17 +00:00
parent feeefd8ba7
commit d95e8a4798
4 changed files with 107 additions and 0 deletions
@@ -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());