Package com.jcabi.github.safe
Class SfIssue
java.lang.Object
com.jcabi.github.safe.SfIssue
- All Implemented Interfaces:
Issue,JsonPatchable,JsonReadable,Comparable<Issue>
Safe issue.
- Since:
- 0.36
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomments()Get all comments of the issue.intevents()Get all events of the issue.booleanexists()Does this issue exist in GitHub?booleanisLocked()The issue conversation is locked?jakarta.json.JsonObjectjson()Describe it in a JSON object.labels()Get all labels of the issue.voidLocks the issue.intnumber()Get its number.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.voidAdds the reaction to the issue.List the reactions of the issue.repo()Repository we're in.toString()voidunlock()Unlocks the issue.
-
Constructor Details
-
SfIssue
Public ctor.- Parameters:
issue- The original issue
-
-
Method Details
-
toString
-
json
Description 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
Description 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
-
repo
Description copied from interface:IssueRepository we're in. -
number
public int number()Description copied from interface:IssueGet its number. -
comments
Description copied from interface:IssueGet all comments of the issue. -
labels
Description copied from interface:IssueGet all labels of the issue. -
events
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:
-
exists
Description 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
- Specified by:
compareToin interfaceComparable<Issue>
-
react
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
Description copied from interface:IssueList the reactions of the issue. -
lock
Description copied from interface:IssueLocks the issue. -
unlock
public void unlock()Description copied from interface:IssueUnlocks the issue. -
isLocked
public boolean isLocked()Description copied from interface:IssueThe issue conversation is locked?
-