Package com.jcabi.github.safe
Class SfIssue
- java.lang.Object
-
- com.jcabi.github.safe.SfIssue
-
- All Implemented Interfaces:
Issue,JsonPatchable,JsonReadable,Comparable<Issue>
@Immutable @Loggable(1) public final class SfIssue extends Object implements Issue
Safe issue.- Since:
- 0.36
- Version:
- $Id: 4275cea38e4a400a4ab9e93971e520aa63123f59 $
- Author:
- Yegor Bugayenko (yegor256@gmail.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Issue
Issue.Smart
-
-
Field Summary
-
Fields inherited from interface com.jcabi.github.Issue
CLOSED_STATE, OPEN_STATE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commentscomments()Get all comments of the issue.intcompareTo(Issue issue)Iterable<Event>events()Get all events of the issue.booleanexists()Does this issue exist in Github?booleanisLocked()The issue conversation is locked?javax.json.JsonObjectjson()Describe it in a JSON object.IssueLabelslabels()Get all labels of the issue.voidlock(String reason)Locks the issue.intnumber()Get its number.voidpatch(javax.json.JsonObject json)Patch using this JSON object.voidreact(Reaction reaction)Adds the reaction to the issue.Iterable<Reaction>reactions()List the reactions of the issue.Reporepo()Repository we're in.StringtoString()voidunlock()Unlocks the issue.
-
-
-
Constructor Detail
-
SfIssue
public SfIssue(Issue issue)
Public ctor.- Parameters:
issue- The original issue
-
-
Method Detail
-
json
public javax.json.JsonObject json() throws IOExceptionDescription copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
patch
public void patch(javax.json.JsonObject json) throws IOExceptionDescription copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
number
public int number()
Description copied from interface:IssueGet its number.
-
comments
public Comments comments()
Description copied from interface:IssueGet all comments of the issue.- Specified by:
commentsin interfaceIssue- Returns:
- Comments
- See Also:
- Issue Comments API
-
labels
public IssueLabels labels()
Description copied from interface:IssueGet all labels of the issue.- Specified by:
labelsin interfaceIssue- Returns:
- Labels
- See Also:
- Labels API
-
events
public Iterable<Event> events() throws IOException
Description copied from interface:IssueGet all events of the issue.- Specified by:
eventsin interfaceIssue- Returns:
- Events
- Throws:
IOException- If there is any I/O problem- See Also:
- List Events for an Issue
-
exists
public boolean exists() throws IOExceptionDescription copied from interface:IssueDoes this issue exist in Github?- Specified by:
existsin interfaceIssue- Returns:
- TRUE if this issue exists
- Throws:
IOException- If there is any I/O problem
-
compareTo
public int compareTo(Issue issue)
- Specified by:
compareToin interfaceComparable<Issue>
-
react
public void react(Reaction reaction) throws IOException
Description copied from interface:IssueAdds the reaction to the issue.- Specified by:
reactin interfaceIssue- Parameters:
reaction- Reaction to be added.- Throws:
IOException- If there is any I/O problem
-
reactions
public Iterable<Reaction> reactions()
Description copied from interface:IssueList the reactions of the issue.
-
unlock
public void unlock()
Description copied from interface:IssueUnlocks the issue.
-
-