Package org.kohsuke.github
Class GHDiscussion
java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHDiscussion
A discussion in GitHub Team.
- Author:
- Charles Moulliard
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAGHLabelBuilderthat updates a single property per requestdone()is called automatically after the property is set.static classAGHLabelBuilderthat allows multiple properties to be updated per request. -
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete the discussion.booleanEquals.getBody()The description of this discussion.Gets the html url.longgetId()The id number of this discussion.longThe number of this discussion.getRoot()Deprecated.getTeam()Get the team to which this discussion belongs.getTitle()Get the title of the discussion.inthashCode()Hash code.booleanWhether the discussion is private to the team.set()Begins a single property update.update()Begins a batch update Consumer must callAbstractBuilder.done()to commit changes.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHDiscussion
public GHDiscussion()
-
-
Method Details
-
getHtmlUrl
Gets the html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- the html url
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getTeam
Get the team to which this discussion belongs.- Returns:
- the team for this discussion
-
getTitle
Get the title of the discussion.- Returns:
- the title
-
getBody
The description of this discussion.- Returns:
- the body
-
getNumber
public long getNumber()The number of this discussion.- Returns:
- the number
-
getId
public long getId()The id number of this discussion. GitHub discussions have "number" instead of "id". This is provided for convenience. -
isPrivate
public boolean isPrivate()Whether the discussion is private to the team.- Returns:
trueif discussion is private.
-
update
Begins a batch update Consumer must callAbstractBuilder.done()to commit changes.- Returns:
- a
GHDiscussion.Updater
-
set
Begins a single property update.- Returns:
- a
GHDiscussion.Setter
-
delete
Delete the discussion.- Throws:
IOException- the io exception
-
equals
Equals. -
hashCode
public int hashCode()Hash code. -
getRoot
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
GitHubinstance, use a local copy instead of pulling it out of objects.