@Immutable @Loggable(value=1) public final class SfIssue extends Object implements Issue
Issue.Smart
CLOSED_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
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic void patch(javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problempublic int number()
Issue
public Comments comments()
Issue
comments
in interface Issue
public IssueLabels labels()
Issue
labels
in interface Issue
public Iterable<Event> events() throws IOException
Issue
events
in interface Issue
IOException
- If there is any I/O problempublic boolean exists() throws IOException
Issue
exists
in interface Issue
IOException
- If there is any I/O problempublic int compareTo(Issue issue)
compareTo
in interface Comparable<Issue>
Copyright © 2012–2018 jcabi.com. All rights reserved.