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 void
delete()
Deprecated.this API is no longer supported by GitHub, keeping it as is for old versions of GitHub EnterpriseReactionContent
getContent()
The kind of reaction left.URL
getHtmlUrl()
Deprecated.GitHub
getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.GHUser
getUser()
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:
getHtmlUrl
in classGHObject
- Returns:
- the html url
-
delete
@Deprecated public void delete() throws IOException
Deprecated.this API is no longer supported by GitHub, keeping it as is for old versions of GitHub EnterpriseRemoves this reaction.- Throws:
IOException
- the io exception- See Also:
- Legacy Delete reactions REST API removed
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-
-