@Immutable public interface GistComments
Use this class to get access to all comments in a gist, for example:
gist = // ... get it somewhere GistComments comments = gist.comments(); GistComment comment = comments.post("Hi, how are you?");
Modifier and Type | Method and Description |
---|---|
GistComment |
get(int number)
Get comment by number.
|
Gist |
gist()
The gist we're in.
|
Iterable<GistComment> |
iterate()
Iterate them all.
|
GistComment |
post(String text)
Post new comment.
|
Gist gist()
GistComment get(int number)
number
- Comment numberIterable<GistComment> iterate()
GistComment post(String text) throws IOException
text
- Text of comment to post in Markdown formatIOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.