Created
March 18, 2019 23:50
-
-
Save Arrlindii/b554a5961ef5cf314862d85dc196238f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DiscountSplitTest: SplitTestProtocol { | |
| typealias ValueType = DisountStrategy | |
| static var identifier: String = "iap_discount_type" | |
| var value: DisountStrategy | |
| required init(group: String) { | |
| if group == "offer" { | |
| value = DefaultDiscountStrategy() | |
| } | |
| value = NoDiscountStrategy() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment