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