use of com.meisolsson.githubsdk.service.issues.IssueCommentService in project gh4a by slapperwan.
the class EditIssueCommentActivity method createComment.
@Override
protected Single<GitHubCommentBase> createComment(String repoOwner, String repoName, String body, long replyToCommentId) {
int issueNumber = getIntent().getIntExtra("issue", 0);
IssueCommentService service = ServiceFactory.get(IssueCommentService.class, false);
CommentRequest request = CommentRequest.builder().body(body).build();
return service.createIssueComment(repoOwner, repoName, issueNumber, request).map(ApiHelpers::throwOnFailure);
}
Aggregations