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
- Version:
- $Id: cde418830e0581fe8a18b886db1c0ad5bdebeeca $
- Author:
- Giang Le (giang@vn-smartsolutions.com)
- See Also:
- Gist Comments API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
gist
Gist gist()
The gist we're in.- Returns:
- Issue
-
get
GistComment get(int number)
Get comment by number.- Parameters:
number
- Comment number- Returns:
- Comment
- See Also:
- Get a Single Comment
-
iterate
Iterable<GistComment> iterate()
Iterate them all.- Returns:
- All comments
- See Also:
- List Comments on an Gist
-
post
GistComment post(String text) throws IOException
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:
- Create a Comment
-
-