public class GHThread extends GHObject
GHNotificationStreamcreated_at, id, responseHeaderFields, 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()
Gets last comment url.
|
Date |
getLastReadAt()
Returns null if the entire thread has never been read.
|
String |
getReason()
Gets reason.
|
GHRepository |
getRepository()
Gets repository.
|
GHSubscription |
getSubscription()
Returns the current subscription for this thread.
|
String |
getTitle()
Gets title.
|
String |
getType()
Gets type.
|
boolean |
isRead()
Is read boolean.
|
void |
markAsRead()
Marks this thread as read.
|
GHSubscription |
subscribe(boolean subscribed,
boolean ignored)
Subscribes to this conversation to get notifications.
|
getCreatedAt, getId, getResponseHeaderFields, 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
IOException - the io exceptionpublic GHPullRequest getBoundPullRequest() throws IOException
IOException - the io exceptionpublic GHCommit getBoundCommit() throws IOException
IOException - the io exceptionpublic void markAsRead()
throws IOException
IOException - the io exceptionpublic GHSubscription subscribe(boolean subscribed, boolean ignored) throws IOException
subscribed - the subscribedignored - the ignoredIOException - the io exceptionpublic GHSubscription getSubscription() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.