@Immutable @Loggable(value=1) public static final class Comment.Smart extends Object implements Comment
Comment.Smart| Modifier and Type | Method and Description |
|---|---|
User |
author()
Get its author.
|
String |
body()
Get its body.
|
void |
body(String text)
Change comment body.
|
int |
compareTo(Comment obj) |
Date |
createdAt()
When this comment was created.
|
Issue |
issue()
The issue it's in.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
int |
number()
Number.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
void |
remove()
Delete the comment.
|
Date |
updatedAt()
When this comment was updated last time.
|
URL |
url()
Get its URL.
|
public Smart(Comment cmt)
cmt - Commentpublic User author() throws IOException
IOException - If there is any I/O problempublic String body() throws IOException
IOException - If there is any I/O problempublic void body(String text) throws IOException
text - Body of commentIOException - If there is any I/O problempublic URL url() throws IOException
IOException - If there is any I/O problempublic Date createdAt() throws IOException
IOException - If there is any I/O problempublic Date updatedAt() throws IOException
IOException - If there is any I/O problempublic int number()
Commentpublic void remove()
throws IOException
Commentremove in interface CommentIOException - If there is any I/O problempublic javax.json.JsonObject json()
throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problempublic void patch(javax.json.JsonObject json)
throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problempublic int compareTo(Comment obj)
compareTo in interface Comparable<Comment>Copyright © 2012–2018 jcabi.com. All rights reserved.