Package com.jcabi.github
Interface GistComments
@Immutable
public interface GistComments
Gist Comments.
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?");- Since:
- 0.8
- See Also:
-
Method Details
-
gist
Gist gist()The gist we're in.- Returns:
- Issue
-
get
Get comment by number.- Parameters:
number- Comment number- Returns:
- Comment
- See Also:
-
iterate
Iterable<GistComment> iterate()Iterate them all.- Returns:
- All comments
- See Also:
-
post
Post new comment.- Parameters:
text- Text of comment to post in Markdown format- Returns:
- Comment
- Throws:
IOException- If there is any I/O problem- See Also:
-