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

Add utility conditions for language and country tags #42

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

Add utility conditions for language and country tags #42

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

Comments

@bgaillard
Copy link
Member

As explained in the http://docs.pushwoosh.com/docs/createmessage documentation it is possible to specify Country and Language conditions.

For example.

"conditions": [["Country", "EQ", "BR"],["Language", "EQ", "pt"]]

It would be useful to have 2 new conditions names CountryCondition and LanguageCondition with utility constants for country codes (i.e ISO_3166-2) and language codes (i.e ISO-639-1).

Here is a sample.

CountryCondition::create()->eq(CountryCode::FR);
LanguageCondition::create()->noteq(LanguageCode::GB);

The CountryCondition and LanguageCondition classes are specific StringCondition which do not allow to specify the name of the tag.

@bgaillard bgaillard self-assigned this Mar 9, 2016
@bgaillard bgaillard added this to the 1.6.0 milestone Mar 9, 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

2 participants
@bgaillard and others