using System.Collections.Generic;
using System.Threading.Tasks;
namespace Octokit
{
///
/// A client for GitHub's Reactions API.
///
///
/// See the Reactions API documentation for more information.
///
public interface IIssueReactionsClient
{
///
/// Get all reactions for a specified Issue
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue
/// The owner of the repository
/// The name of the repository
/// The issue id
Task> GetAll(string owner, string name, int number);
///
/// Get all reactions for a specified Issue
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue
/// The ID of the repository
/// The issue id
Task> GetAll(int repositoryId, int number);
///
/// Creates a reaction for a specified Issue
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue
/// The owner of the repository
/// The name of the repository
/// The issue id
/// The reaction to create
Task Create(string owner, string name, int number, NewReaction reaction);
///
/// Creates a reaction for a specified Issue
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue
/// The ID of the repository
/// The issue id
/// The reaction to create
Task Create(int repositoryId, int number, NewReaction reaction);
}
}