IObservableUserClient should have Emails underneath

This commit is contained in:
Brendan Forster
2014-02-18 21:50:06 +11:00
parent 082d12d226
commit 5ff3987d05
4 changed files with 29 additions and 0 deletions
@@ -35,5 +35,13 @@ namespace Octokit.Reactive
/// See the <a href="http://developer.github.com/v3/users/followers/">Followers API documentation</a> for more information.
///</remarks>
IObservableFollowersClient Followers { get; }
/// <summary>
/// A client for GitHub's User Emails API
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v3/users/emails/">Emails API documentation</a> for more information.
///</remarks>
IObservableUserEmailsClient Email { get; }
}
}
@@ -14,6 +14,7 @@ namespace Octokit.Reactive
_client = client.User;
Followers = new ObservableFollowersClient(client);
Email = new ObservableUserEmailsClient(client);
}
/// <summary>
@@ -57,5 +58,13 @@ namespace Octokit.Reactive
/// See the <a href="http://developer.github.com/v3/users/followers/">Followers API documentation</a> for more information.
///</remarks>
public IObservableFollowersClient Followers { get; private set; }
/// <summary>
/// A client for GitHub's User Emails API
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v3/users/emails/">Emails API documentation</a> for more information.
///</remarks>
public IObservableUserEmailsClient Email { get; private set; }
}
}
+6
View File
@@ -12,6 +12,12 @@ namespace Octokit
/// </remarks>
public interface IUsersClient
{
/// <summary>
/// A client for GitHub's User Emails API
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v3/users/emails/">Emails API documentation</a> for more information.
///</remarks>
IUserEmailsClient Email { get; }
/// <summary>
+6
View File
@@ -27,6 +27,12 @@ namespace Octokit
Followers = new FollowersClient(apiConnection);
}
/// <summary>
/// A client for GitHub's User Emails API
/// </summary>
/// <remarks>
/// See the <a href="http://developer.github.com/v3/users/emails/">Emails API documentation</a> for more information.
///</remarks>
public IUserEmailsClient Email { get; private set; }
/// <summary>