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 ConditionInfo object and example TextMergeConditionInfo for segment conditions #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vbsteven
Copy link

@vbsteven vbsteven commented Mar 3, 2019

This PR changes the conditions field in SegmentOptsInfo from Array<String>? to Array<ConditionInfo> so more complex segments can be configured when creating campaigns.

I included the TextMergeConditionInfo class because that is the condition that I needed in my project but the base ConditionInfo class is open so other sub classes can be easily added.

This change is kind of not backwards compatible because it changes the type of the conditions field so existing code that uses that field as an array of strings will not work anymore. Although I don't know why anyone would use the field like that so I don't think it's an issue.

@jperezlatimes
Copy link

Is there any movement on this? I would like to use maleorang in my project but not having full support for conditions is a major blocker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants