Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement powerful DSL for targeted message filters #43

Open
bgaillard opened this issue Mar 10, 2016 · 0 comments
Open

Implement powerful DSL for targeted message filters #43

bgaillard opened this issue Mar 10, 2016 · 0 comments
Assignees
Milestone

Comments

@bgaillard
Copy link
Member

For now the TargetedMessageRequest allows to set a devicesFilter property as a string only.

It would be great to have a powerful DSL to create the device filters, for example.

$filters = StringTagFilter::create('username')->eq('my_username')->and(IntTagFilter::create('age')->between(15, 50))->join(ApplicationTagFilter::create('XXXXX-XXXXX');

This sample will be equivalent to (T("username", EQ, "my_username"), T("favorite_color", IN, ["red","green","blue"])) + A('XXXXX-XXXXX).

A first implementation has been started on the devices-filter branch.

@bgaillard bgaillard added this to the 1.6.0 milestone Mar 10, 2016
@bgaillard bgaillard self-assigned this Mar 10, 2016
@bgaillard bgaillard modified the milestones: 1.7.0, 1.8.0 Aug 2, 2016
@bgaillard bgaillard modified the milestones: 1.9.0, 2.0.0 Oct 20, 2016
@bgaillard bgaillard modified the milestones: 2.1.0, 2.0.0 Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant