public class GHThread extends GHObject
GHNotificationStreamcreated_at, id, updated_at| Modifier and Type | Method and Description |
|---|---|
GHCommit |
getBoundCommit()
If this thread is about a commit, return that commit.
|
GHIssue |
getBoundIssue()
If this thread is about an issue, return that issue.
|
GHPullRequest |
getBoundPullRequest()
If this thread is about a pull request, return that pull request.
|
java.net.URL |
getHtmlUrl()
Deprecated.
This object has no HTML URL.
|
java.lang.String |
getLastCommentUrl() |
java.util.Date |
getLastReadAt()
Returns null if the entire thread has never been read.
|
java.lang.String |
getReason() |
GHRepository |
getRepository() |
GHSubscription |
getSubscription()
Returns the current subscription for this thread.
|
java.lang.String |
getTitle() |
java.lang.String |
getType() |
boolean |
isRead() |
void |
markAsRead()
Marks this thread as read.
|
GHSubscription |
subscribe(boolean subscribed,
boolean ignored)
Subscribes to this conversation to get notifications.
|
getCreatedAt, getId, getUpdatedAt, getUrl, toStringpublic java.util.Date getLastReadAt()
public java.net.URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic java.lang.String getReason()
public GHRepository getRepository()
public boolean isRead()
public java.lang.String getTitle()
public java.lang.String getType()
public java.lang.String getLastCommentUrl()
public GHIssue getBoundIssue() throws java.io.IOException
java.io.IOExceptionpublic GHPullRequest getBoundPullRequest() throws java.io.IOException
java.io.IOExceptionpublic GHCommit getBoundCommit() throws java.io.IOException
java.io.IOExceptionpublic void markAsRead()
throws java.io.IOException
java.io.IOExceptionpublic GHSubscription subscribe(boolean subscribed, boolean ignored) throws java.io.IOException
java.io.IOExceptionpublic GHSubscription getSubscription() throws java.io.IOException
java.io.IOExceptionCopyright © 2016. All Rights Reserved.