From a78d134338409fa5095f6245b51575deecd67959 Mon Sep 17 00:00:00 2001 From: Bernard Labno Date: Wed, 21 Nov 2012 13:27:08 +0000 Subject: [PATCH] Add "after" to filter. --- src/main/java/pl/com/it_crowd/youtrack/api/Filter.java | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/java/pl/com/it_crowd/youtrack/api/Filter.java b/src/main/java/pl/com/it_crowd/youtrack/api/Filter.java index 6431592..81863c7 100644 --- a/src/main/java/pl/com/it_crowd/youtrack/api/Filter.java +++ b/src/main/java/pl/com/it_crowd/youtrack/api/Filter.java @@ -10,6 +10,8 @@ import java.util.List; public final class Filter { // ------------------------------ FIELDS ------------------------------ + private long after; + private List conditions = new ArrayList(); private long maxResults; @@ -116,11 +118,20 @@ public final class Filter { if (maxResults > 0) { builder.append("&max=").append(maxResults); } + if (after > 0) { + builder.append("&after=").append(after); + } return builder.length() > space.length() ? builder.substring(space.length()) : builder.toString(); } // -------------------------- OTHER METHODS -------------------------- + public Filter after(long after) + { + this.after = after; + return this; + } + public Filter created(DateValues date) { return created(date.getFilterValue()); -- libgit2 0.24.0