Commit edfc49aa authored by 郭燕飞's avatar 郭燕飞 💬

fix

parent 995b7c6f
......@@ -7,6 +7,8 @@ import java.io.IOException;
*/
public class GitlabAPIException extends IOException {
private static final long serialVersionUID = 2141938680478082113L;
private int responseCode;
public GitlabAPIException(String message, Integer responseCode, Throwable cause) {
......
......@@ -5,10 +5,11 @@ import org.gitlab.api.http.Query;
import java.io.UnsupportedEncodingException;
public class Pagination {
public static final String PARAM_PAGE = "page";
public static final String PARAM_PER_PAGE = "per_page";
public static final int MAX_ITEMS_PER_PAGE = 100;
private final Query paginationQuery = new Query();
public static final String PARAM_PAGE = "page";
public static final String PARAM_PER_PAGE = "per_page";
public static final int MAX_ITEMS_PER_PAGE = 100;
private final Query paginationQuery = new Query();
public void setPage(int page) {
try {
......@@ -26,12 +27,12 @@ public class Pagination {
} catch (UnsupportedEncodingException ignored) {
}
}
public Pagination withPage(int page) {
setPage(page);
return this;
}
public Pagination withPerPage(int perPage) {
setPerPage(perPage);
return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment