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