public PagedIterator<GHReaction> _iterator(int pageSize) { return new PagedIterator<GHReaction>(owner.root.retrieve().withPreview(SQUIRREL_GIRL).asIterator(getApiRoute()+"/reactions", GHReaction[].class, pageSize)) { @Override protected void wrapUp(GHReaction[] page) { for (GHReaction c : page) c.wrap(owner.root); } }; } };
public PagedIterator<GHReaction> _iterator(int pageSize) { return new PagedIterator<GHReaction>(owner.root.retrieve().withPreview(SQUIRREL_GIRL).asIterator(getApiRoute()+"/reactions", GHReaction[].class, pageSize)) { @Override protected void wrapUp(GHReaction[] page) { for (GHReaction c : page) c.wrap(owner.root); } }; } };
public void lock() throws IOException { new Requester(root).method("PUT").to(getApiRoute()+"/lock"); }
public void unlock() throws IOException { new Requester(root).method("PUT").to(getApiRoute()+"/lock"); }
public void lock() throws IOException { new Requester(root).method("PUT").to(getApiRoute()+"/lock"); }
public void unlock() throws IOException { new Requester(root).method("PUT").to(getApiRoute()+"/lock"); }
private void edit(String key, Object value) throws IOException { new Requester(root)._with(key, value).method("PATCH").to(getApiRoute()); }
private void edit(String key, Object value) throws IOException { new Requester(root)._with(key, value).method("PATCH").to(getApiRoute()); }
private void edit(String key, Object value) throws IOException { new Requester(root)._with(key, value).method("PATCH").to(getApiRoute()); }
@Preview @Deprecated public GHReaction createReaction(ReactionContent content) throws IOException { return new Requester(owner.root) .withPreview(SQUIRREL_GIRL) .with("content", content.getContent()) .to(getApiRoute()+"/reactions", GHReaction.class).wrap(root); }
@Preview @Deprecated public GHReaction createReaction(ReactionContent content) throws IOException { return new Requester(owner.root) .withPreview(SQUIRREL_GIRL) .with("content", content.getContent()) .to(getApiRoute()+"/reactions", GHReaction.class).wrap(root); }