@Immutable @Loggable(value=1) public static final class GistComment.Smart extends Object implements GistComment
GistComment.Smart
Constructor and Description |
---|
Smart(GistComment cmt)
Public ctor.
|
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(GistComment cmt) |
Date |
createdAt()
When this comment was created.
|
Gist |
gist()
The gist 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(GistComment 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 Gist gist()
GistComment
gist
in interface GistComment
public int number()
GistComment
number
in interface GistComment
public void remove() throws IOException
GistComment
remove
in interface GistComment
IOException
- If there is any I/O problempublic int compareTo(GistComment cmt)
compareTo
in interface Comparable<GistComment>
public void patch(javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problempublic javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.