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.
|
URL |
getHtmlUrl()
Deprecated.
This object has no HTML URL.
|
String |
getLastCommentUrl() |
Date |
getLastReadAt()
Returns null if the entire thread has never been read.
|
String |
getReason() |
GHRepository |
getRepository() |
GHSubscription |
getSubscription()
Returns the current subscription for this thread.
|
String |
getTitle() |
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 Date getLastReadAt()
public URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic String getReason()
public GHRepository getRepository()
public boolean isRead()
public String getTitle()
public String getType()
public String getLastCommentUrl()
public GHIssue getBoundIssue() throws IOException
IOExceptionpublic GHPullRequest getBoundPullRequest() throws IOException
IOExceptionpublic GHCommit getBoundCommit() throws IOException
IOExceptionpublic void markAsRead()
throws IOException
IOExceptionpublic GHSubscription subscribe(boolean subscribed, boolean ignored) throws IOException
IOExceptionpublic GHSubscription getSubscription() throws IOException
IOExceptionCopyright © 2017. All rights reserved.