Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public void reject(Long cardId) throws IOException {
   moderate(ModerationRequest.rejectionOf(cardId));
 }
Exemplo n.º 3
0
 public void approve(CardId id) throws IOException {
   moderate(ModerationRequest.approvalOf(id.id()));
 }
Exemplo n.º 4
0
 public void unapprove(Long cardId) throws IOException {
   moderate(ModerationRequest.pendingOf(cardId));
 }
Exemplo n.º 5
0
 public void approve(Long cardId) throws IOException {
   moderate(ModerationRequest.approvalOf(cardId));
 }