@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.
|
@NotNull(message="comment is never NULL") GistComment get(int number)
number
- Comment number@NotNull(message="iterable is never NULL") Iterable<GistComment> iterate()
@NotNull(message="comment is never NULL") GistComment post(@NotNull(message="text can\'t be NULL") String text) throws IOException
text
- Text of comment to post in Markdown formatIOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.