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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.PullComment
PullComment.Smart
-
-
Constructor Summary
Constructors Constructor Description Smart(PullComment pcomment)Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringauthor()Get its author.Stringbody()Get its body value.voidbody(String value)Change its body value.StringcommitId()Get its commit id value.voidcommitId(String value)Change its commit id value.intcompareTo(PullComment comment)Stringidentifier()Get its id value.voididentifier(String value)Change its id value.javax.json.JsonObjectjson()Describe it in a JSON object.intnumber()Get its number.voidpatch(javax.json.JsonObject json)Patch using this JSON object.Pullpull()Pull we're in.voidreact(Reaction reaction)Adds the reaction to the pull comment.Collection<Reaction>reactions()List the reactions of the pull comment.intreply()Get its reply id value.Stringurl()Get its url value.voidurl(String value)Change its url value.
-
-
-
Constructor Detail
-
Smart
public Smart(PullComment pcomment)
Public ctor.- Parameters:
pcomment- Pull comment
-
-
Method Detail
-
identifier
public String identifier() throws IOException
Get its id value.- Returns:
- Id of pull comment
- Throws:
IOException- If there is any I/O problem
-
identifier
public void identifier(String value) throws IOException
Change its id value.- Parameters:
value- Id of pull comment- Throws:
IOException- If there is any I/O problem
-
commitId
public String commitId() throws IOException
Get its commit id value.- Returns:
- Commit id of pull comment
- Throws:
IOException- If there is any I/O problem
-
commitId
public void commitId(String value) throws IOException
Change its commit id value.- Parameters:
value- Commit id of pull comment- Throws:
IOException- If there is any I/O problem
-
url
public String url() throws IOException
Get its url value.- Returns:
- Url of pull comment
- Throws:
IOException- If there is any I/O problem
-
reply
public int reply() throws IOExceptionGet its reply id value.- Returns:
- Reply id of pull comment
- Throws:
IOException- If there is any I/O problem
-
url
public void url(String value) throws IOException
Change its url value.- Parameters:
value- Url of pull comment- Throws:
IOException- If there is any I/O problem
-
body
public String body() throws IOException
Get its body value.- Returns:
- Url of pull comment
- Throws:
IOException- If there is any I/O problem
-
body
public void body(String value) throws IOException
Change its body value.- Parameters:
value- Url of pull comment- Throws:
IOException- If there is any I/O problem
-
pull
public Pull 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
public void react(Reaction reaction)
Description copied from interface:PullCommentAdds the reaction to the pull comment.- Specified by:
reactin interfacePullComment- Parameters:
reaction- Reaction to be added.
-
reactions
public Collection<Reaction> reactions()
Description copied from interface:PullCommentList the reactions of the pull comment.- Specified by:
reactionsin interfacePullComment- Returns:
- Comment reactions.
-
compareTo
public int compareTo(PullComment comment)
- Specified by:
compareToin interfaceComparable<PullComment>
-
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
-
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
-
author
public String author() throws IOException
Get its author.- Returns:
- Pull comment author
- Throws:
IOException- If there is any I/O problem
-
-