Showing
1 changed file
with
11 additions
and
0 deletions
@@ -10,6 +10,8 @@ import java.util.List; | @@ -10,6 +10,8 @@ import java.util.List; | ||
10 | public final class Filter { | 10 | public final class Filter { |
11 | // ------------------------------ FIELDS ------------------------------ | 11 | // ------------------------------ FIELDS ------------------------------ |
12 | 12 | ||
13 | + private long after; | ||
14 | + | ||
13 | private List<Condition> conditions = new ArrayList<Condition>(); | 15 | private List<Condition> conditions = new ArrayList<Condition>(); |
14 | 16 | ||
15 | private long maxResults; | 17 | private long maxResults; |
@@ -116,11 +118,20 @@ public final class Filter { | @@ -116,11 +118,20 @@ public final class Filter { | ||
116 | if (maxResults > 0) { | 118 | if (maxResults > 0) { |
117 | builder.append("&max=").append(maxResults); | 119 | builder.append("&max=").append(maxResults); |
118 | } | 120 | } |
121 | + if (after > 0) { | ||
122 | + builder.append("&after=").append(after); | ||
123 | + } | ||
119 | return builder.length() > space.length() ? builder.substring(space.length()) : builder.toString(); | 124 | return builder.length() > space.length() ? builder.substring(space.length()) : builder.toString(); |
120 | } | 125 | } |
121 | 126 | ||
122 | // -------------------------- OTHER METHODS -------------------------- | 127 | // -------------------------- OTHER METHODS -------------------------- |
123 | 128 | ||
129 | + public Filter after(long after) | ||
130 | + { | ||
131 | + this.after = after; | ||
132 | + return this; | ||
133 | + } | ||
134 | + | ||
124 | public Filter created(DateValues date) | 135 | public Filter created(DateValues date) |
125 | { | 136 | { |
126 | return created(date.getFilterValue()); | 137 | return created(date.getFilterValue()); |
Please
register
or
login
to post a comment