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: 33091c2d1e794aba94f885f0fcfc06ba935f3f87 $
- Author:
- Yegor Bugayenko ([email protected])
- 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
-
-