Package org.kohsuke.github
Class GHReaction
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHReaction
-
@Preview(SQUIRREL_GIRL) public class GHReaction extends GHObject
Reaction to issue, comment, PR, and so on.- Author:
- Kohsuke Kawaguchi
- See Also:
Reactable
-
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHReaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddelete()Removes this reaction.ReactionContentgetContent()The kind of reaction left.URLgetHtmlUrl()Deprecated.GHUsergetUser()User who left the reaction.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Method Detail
-
getContent
public ReactionContent getContent()
The kind of reaction left.- Returns:
- the content
-
getUser
public GHUser getUser()
User who left the reaction.- Returns:
- the user
-
getHtmlUrl
@Deprecated public URL getHtmlUrl()
Deprecated.Reaction has no HTML URL. Don't call this method.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
delete
public void delete() throws IOExceptionRemoves this reaction.- Throws:
IOException- the io exception
-
-