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 String
author()
Get its author.String
body()
Get its body value.void
body(String value)
Change its body value.String
commitId()
Get its commit id value.void
commitId(String value)
Change its commit id value.int
compareTo(PullComment comment)
String
identifier()
Get its id value.void
identifier(String value)
Change its id value.javax.json.JsonObject
json()
Describe it in a JSON object.int
number()
Get its number.void
patch(javax.json.JsonObject json)
Patch using this JSON object.Pull
pull()
Pull we're in.void
react(Reaction reaction)
Adds the reaction to the pull comment.Collection<Reaction>
reactions()
List the reactions of the pull comment.int
reply()
Get its reply id value.String
url()
Get its url value.void
url(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 IOException
Get 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:PullComment
Pull we're in.- Specified by:
pull
in interfacePullComment
- Returns:
- Pull
-
number
public int number()
Description copied from interface:PullComment
Get its number.- Specified by:
number
in interfacePullComment
- Returns:
- Pull comment number
-
react
public void react(Reaction reaction)
Description copied from interface:PullComment
Adds the reaction to the pull comment.- Specified by:
react
in interfacePullComment
- Parameters:
reaction
- Reaction to be added.
-
reactions
public Collection<Reaction> reactions()
Description copied from interface:PullComment
List the reactions of the pull comment.- Specified by:
reactions
in interfacePullComment
- Returns:
- Comment reactions.
-
compareTo
public int compareTo(PullComment comment)
- Specified by:
compareTo
in interfaceComparable<PullComment>
-
patch
public void patch(javax.json.JsonObject json) throws IOException
Description copied from interface:JsonPatchable
Patch using this JSON object.- Specified by:
patch
in interfaceJsonPatchable
- Parameters:
json
- JSON object- Throws:
IOException
- If there is any I/O problem
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in 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
-
-