mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 06:05:12 +00:00
default implementation. Still needs delete method which is skipped because it's a HTTP DELETE. There's currently nothing in the ApiConnection to handle this scenario and it's a rather unorthodox thing to support. delete.
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
|
namespace Octokit.Reactive
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's User Emails API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="http://developer.github.com/v3/users/emails/">User Emails API documentation</a> for more information.
|
|
/// </remarks>
|
|
public interface IObservableUserEmailsClient
|
|
{
|
|
/// <summary>
|
|
/// Gets all email addresses for the authenticated user.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user
|
|
/// </remarks>
|
|
/// <returns>The <see cref="EmailAddress"/>es for the authenticated user.</returns>
|
|
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
|
IObservable<EmailAddress> GetAll();
|
|
|
|
/// <summary>
|
|
/// Adds email addresses for the authenticated user.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// http://developer.github.com/v3/users/emails/#add-email-addresses
|
|
/// </remarks>
|
|
/// <param name="emailAddresses">The email addresses to add.</param>
|
|
/// <returns>Returns the added <see cref="EmailAddress"/>es.</returns>
|
|
IObservable<string> Add(params string[] emailAddresses);
|
|
}
|
|
}
|