public boolean isStarred() throws IOException { return root.retrieve().asHttpStatusCode(getApiTailUrl("star"))/100==2; }
public boolean isStarred() throws IOException { return root.retrieve().asHttpStatusCode(getApiTailUrl("star"))/100==2; }
public boolean isStarred() throws IOException { return root.retrieve().asHttpStatusCode(getApiTailUrl("star"))/100==2; }
/** * Marks all the notifications as read. */ public void markAsRead(long timestamp) throws IOException { final Requester req = new Requester(root).method("PUT"); if (timestamp>=0) req.with("last_read_at", GitHub.printDate(new Date(timestamp))); req.asHttpStatusCode(apiUrl); }
/** * Checks if the given user is an assignee for this repository. */ public boolean hasAssignee(GHUser u) throws IOException { return root.retrieve().asHttpStatusCode(getApiTailUrl("assignees/" + u.getLogin()))/100==2; }
/** * Checks if the given user is an assignee for this repository. */ public boolean hasAssignee(GHUser u) throws IOException { return root.retrieve().asHttpStatusCode(getApiTailUrl("assignees/" + u.getLogin()))/100==2; }
/** * Marks all the notifications as read. */ public void markAsRead(long timestamp) throws IOException { final Requester req = new Requester(root).method("PUT"); if (timestamp>=0) req.with("last_read_at", GitHub.printDate(new Date(timestamp))); req.asHttpStatusCode(apiUrl); }
/** * Marks all the notifications as read. */ public void markAsRead(long timestamp) throws IOException { final Requester req = new Requester(root).method("PUT"); if (timestamp>=0) req.with("last_read_at", GitHub.printDate(new Date(timestamp))); req.asHttpStatusCode(apiUrl); }