Skip to content

Commit d79e4a6

Browse files
simplify adding filter operator
1 parent 0956faf commit d79e4a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/currencyfair/onesignal/model/notification/NotificationRequestBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ public NotificationRequestBuilder withFilter(Filter filter) {
153153
return this;
154154
}
155155

156+
public NotificationRequestBuilder withFilterOperator(Operator operator) {
157+
filters.add(new Filter(operator));
158+
return this;
159+
}
160+
156161
public NotificationRequestBuilder withIncludePlayerIds(List<String> includePlayerIds) {
157162
this.includePlayerIds = includePlayerIds;
158163
return this;

0 commit comments

Comments
 (0)