public PagedIterator<GHPullRequestReviewComment> _iterator(int pageSize) { return new PagedIterator<GHPullRequestReviewComment>( owner.root.retrieve() .asIterator(getApiRoute() + "/comments", GHPullRequestReviewComment[].class, pageSize)) { protected void wrapUp(GHPullRequestReviewComment[] page) { for (GHPullRequestReviewComment c : page) c.wrapUp(owner); } }; } };
public PagedIterator<GHPullRequestReviewComment> _iterator(int pageSize) { return new PagedIterator<GHPullRequestReviewComment>( owner.root.retrieve() .asIterator(getApiRoute() + "/comments", GHPullRequestReviewComment[].class, pageSize)) { protected void wrapUp(GHPullRequestReviewComment[] page) { for (GHPullRequestReviewComment c : page) c.wrapUp(owner); } }; } };
/** * Deletes this review. */ public void delete() throws IOException { new Requester(owner.root).method("DELETE") .to(getApiRoute()); }
/** * Deletes this review. */ public void delete() throws IOException { new Requester(owner.root).method("DELETE") .to(getApiRoute()); }
/** * Dismisses this review. */ public void dismiss(String message) throws IOException { new Requester(owner.root).method("PUT") .with("message", message) .to(getApiRoute()+"/dismissals"); state = GHPullRequestReviewState.DISMISSED; }
/** * Dismisses this review. */ public void dismiss(String message) throws IOException { new Requester(owner.root).method("PUT") .with("message", message) .to(getApiRoute()+"/dismissals"); state = GHPullRequestReviewState.DISMISSED; }
/** * Updates the comment. */ public void submit(String body, GHPullRequestReviewEvent event) throws IOException { new Requester(owner.root).method("POST") .with("body", body) .with("event", event.action()) .to(getApiRoute()+"/events",this); this.body = body; this.state = event.toState(); }
/** * Updates the comment. */ public void submit(String body, GHPullRequestReviewEvent event) throws IOException { new Requester(owner.root).method("POST") .with("body", body) .with("event", event.action()) .to(getApiRoute()+"/events",this); this.body = body; this.state = event.toState(); }