Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Add ConditionInfo object and example TextMergeConditionInfo for segment conditions#28

Open
vbsteven wants to merge 1 commit intoEcwid:masterfrom
vbsteven:segmentOptsConditions
Open

Add ConditionInfo object and example TextMergeConditionInfo for segment conditions#28
vbsteven wants to merge 1 commit intoEcwid:masterfrom
vbsteven:segmentOptsConditions

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants