use of com.meisolsson.githubsdk.model.request.ReactionRequest in project gh4a by slapperwan.
the class CommitNoteAdapter method addReaction.
@Override
public Single<Reaction> addReaction(ReactionBar.Item item, String content) {
GitComment comment = ((ViewHolder) item).mBoundItem;
ReactionService service = ServiceFactory.get(ReactionService.class, false);
ReactionRequest request = ReactionRequest.builder().content(content).build();
return service.createCommitCommentReaction(mRepoOwner, mRepoName, comment.id(), request).map(ApiHelpers::throwOnFailure);
}
Aggregations