private void moderate(ModerationRequest moderation) throws IOException { JsonHttpContent payload = new JsonHttpContent(jsonFactory, moderation); HttpRequest request = requestFactory().buildPostRequest(moderation.url(useSandbox), payload); request.execute(); }
public void reject(Long cardId) throws IOException { moderate(ModerationRequest.rejectionOf(cardId)); }
public void approve(CardId id) throws IOException { moderate(ModerationRequest.approvalOf(id.id())); }
public void unapprove(Long cardId) throws IOException { moderate(ModerationRequest.pendingOf(cardId)); }
public void approve(Long cardId) throws IOException { moderate(ModerationRequest.approvalOf(cardId)); }