Package com.jcabi.github
Class PullComment.Smart
java.lang.Object
com.jcabi.github.PullComment.Smart
- All Implemented Interfaces:
JsonPatchable,JsonReadable,PullComment,Comparable<PullComment>
- Enclosing interface:
- PullComment
@Immutable
@Loggable(1)
public static final class PullComment.Smart
extends Object
implements PullComment
Smart PullComment with extra features.
- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.PullComment
PullComment.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Get its author.body()Get its body value.voidChange its body value.commitId()Get its commit id value.voidChange its commit id value.intcompareTo(PullComment comment) Get its id value.voididentifier(String value) Change its id value.jakarta.json.JsonObjectjson()Describe it in a JSON object.intnumber()Get its number.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.pull()Pull we're in.voidAdds the reaction to the pull comment.List the reactions of the pull comment.intreply()Get its reply id value.url()Get its url value.voidChange its url value.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
pcomment- Pull comment
-
-
Method Details
-
identifier
Get its id value.- Returns:
- Id of pull comment
- Throws:
IOException- If there is any I/O problem
-
identifier
Change its id value.- Parameters:
value- Id of pull comment- Throws:
IOException- If there is any I/O problem
-
commitId
Get its commit id value.- Returns:
- Commit id of pull comment
- Throws:
IOException- If there is any I/O problem
-
commitId
Change its commit id value.- Parameters:
value- Commit id of pull comment- Throws:
IOException- If there is any I/O problem
-
url
Get its url value.- Returns:
- Url of pull comment
- Throws:
IOException- If there is any I/O problem
-
reply
Get its reply id value.- Returns:
- Reply id of pull comment
- Throws:
IOException- If there is any I/O problem
-
url
Change its url value.- Parameters:
value- Url of pull comment- Throws:
IOException- If there is any I/O problem
-
body
Get its body value.- Returns:
- Url of pull comment
- Throws:
IOException- If there is any I/O problem
-
body
Change its body value.- Parameters:
value- Url of pull comment- Throws:
IOException- If there is any I/O problem
-
pull
Description copied from interface:PullCommentPull we're in.- Specified by:
pullin interfacePullComment- Returns:
- Pull
-
number
public int number()Description copied from interface:PullCommentGet its number.- Specified by:
numberin interfacePullComment- Returns:
- Pull comment number
-
react
Description copied from interface:PullCommentAdds the reaction to the pull comment.- Specified by:
reactin interfacePullComment- Parameters:
reaction- Reaction to be added.
-
reactions
Description copied from interface:PullCommentList the reactions of the pull comment.- Specified by:
reactionsin interfacePullComment- Returns:
- Comment reactions.
-
compareTo
- Specified by:
compareToin interfaceComparable<PullComment>
-
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
-
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
-
author
Get its author.- Returns:
- Pull comment author
- Throws:
IOException- If there is any I/O problem
-