java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHThread
A conversation in the notification API.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Method Summary
Modifier and TypeMethodDescriptionIf this thread is about a commit, return that commit.If this thread is about an issue, return that issue.If this thread is about a pull request, return that pull request.Gets last comment url.Returns null if the entire thread has never been read.Gets reason.Gets repository.Returns the current subscription for this thread.getTitle()
Gets title.getType()
Gets type.boolean
isRead()
Is read boolean.void
Marks this thread as read.subscribe
(boolean subscribed, boolean ignored) Subscribes to this conversation to get notifications.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Method Details
-
getLastReadAt
Returns null if the entire thread has never been read.- Returns:
- the last read at
-
getReason
Gets reason.- Returns:
- the reason
-
getRepository
Gets repository.- Returns:
- the repository
-
isRead
public boolean isRead()Is read boolean.- Returns:
- the boolean
-
getTitle
Gets title.- Returns:
- the title
-
getType
Gets type.- Returns:
- the type
-
getLastCommentUrl
Gets last comment url.- Returns:
- the last comment url
-
getBoundIssue
If this thread is about an issue, return that issue.- Returns:
- null if this thread is not about an issue.
- Throws:
IOException
- the io exception
-
getBoundPullRequest
If this thread is about a pull request, return that pull request.- Returns:
- null if this thread is not about a pull request.
- Throws:
IOException
- the io exception
-
getBoundCommit
If this thread is about a commit, return that commit.- Returns:
- null if this thread is not about a commit.
- Throws:
IOException
- the io exception
-
markAsRead
Marks this thread as read.- Throws:
IOException
- the io exception
-
subscribe
Subscribes to this conversation to get notifications.- Parameters:
subscribed
- the subscribedignored
- the ignored- Returns:
- the gh subscription
- Throws:
IOException
- the io exception
-
getSubscription
Returns the current subscription for this thread.- Returns:
- null if no subscription exists.
- Throws:
IOException
- the io exception
-