using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's User Emails API. /// /// /// See the User Emails API documentation for more information. /// public interface IUserEmailsClient { /// /// Gets all email addresses for the authenticated user. /// /// /// http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user /// /// The es for the authenticated user. [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] Task> GetAll(); /// /// Gets all email addresses for the authenticated user. /// /// /// http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user /// /// Options for changing the API response /// The es for the authenticated user. [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] Task> GetAll(ApiOptions options); /// /// Adds email addresses for the authenticated user. /// /// /// http://developer.github.com/v3/users/emails/#add-email-addresses /// /// The email addresses to add. /// Returns the added es. Task> Add(params string[] emailAddresses); /// /// Deletes email addresses for the authenticated user. /// /// /// http://developer.github.com/v3/users/emails/#delete-email-addresses /// /// The email addresses to delete. /// Returns the added es. Task Delete(params string[] emailAddresses); } }