Package com.jcabi.github
Interface Comments
-
- All Known Implementing Classes:
SfComments
@Immutable public interface Comments
Github comments.Use this class to get access to all comments in an issue, for example:
issue = // ... get it somewhere Comments comments = issue.comments(); Comment comment = comments.post("Hi, how are you?");
- Since:
- 0.1
- Version:
- $Id: 5e9943e5e96dcd71ac580a6f28dd545b4c52d737 $
- Author:
- Yegor Bugayenko (yegor256@gmail.com)
- See Also:
- Issue Comments API
-
-
Method Detail
-
issue
Issue issue()
The issue we're in.- Returns:
- Issue
-
get
Comment get(int number)
Get comment by number.- Parameters:
number
- Comment number- Returns:
- Comment
- See Also:
- Get a Single Comment
-
iterate
Iterable<Comment> iterate(Date since)
Iterate them all.- Parameters:
since
- Since when? Just givenew Date(0)
if you want all comments.- Returns:
- All comments
- See Also:
- List Comments on an Issue
-
post
Comment 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
-
-