@Immutable @Loggable(value=1) public final class SfIssue extends Object implements Issue
Issue.SmartCLOSED_STATE, OPEN_STATE| Modifier and Type | Method and Description |
|---|---|
Comments |
comments()
Get all comments of the issue.
|
int |
compareTo(Issue issue) |
Iterable<Event> |
events()
Get all events of the issue.
|
boolean |
exists()
Does this issue exist in Github?
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
IssueLabels |
labels()
Get all labels of the issue.
|
int |
number()
Get its number.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
Repo |
repo()
Repository we're in.
|
String |
toString() |
public SfIssue(Issue issue)
issue - The original issuepublic javax.json.JsonObject json()
throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problempublic void patch(javax.json.JsonObject json)
throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problempublic int number()
Issuepublic Comments comments()
Issuecomments in interface Issuepublic IssueLabels labels()
Issuelabels in interface Issuepublic Iterable<Event> events() throws IOException
Issueevents in interface IssueIOException - If there is any I/O problempublic boolean exists()
throws IOException
Issueexists in interface IssueIOException - If there is any I/O problempublic int compareTo(Issue issue)
compareTo in interface Comparable<Issue>Copyright © 2012–2018 jcabi.com. All rights reserved.