Package org.kohsuke.github
Interface Reactable
-
- All Known Implementing Classes:
GHCommitComment,GHIssue,GHIssueComment,GHPullRequest,GHPullRequestReviewComment
@Preview(SQUIRREL_GIRL) public interface Reactable
- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GHReactioncreateReaction(ReactionContent content)Leaves a reaction to this object.voiddeleteReaction(GHReaction reaction)Delete a reaction from this object.PagedIterable<GHReaction>listReactions()List all the reactions left to this object.
-
-
-
Method Detail
-
listReactions
@Preview(SQUIRREL_GIRL) PagedIterable<GHReaction> listReactions()
List all the reactions left to this object.- Returns:
- the paged iterable
-
createReaction
@Preview(SQUIRREL_GIRL) GHReaction createReaction(ReactionContent content) throws IOException
Leaves a reaction to this object.- Parameters:
content- the content- Returns:
- the gh reaction
- Throws:
IOException- the io exception
-
deleteReaction
void deleteReaction(GHReaction reaction) throws IOException
Delete a reaction from this object.- Parameters:
reaction- the reaction to delete- Throws:
IOException- the io exception
-
-