Skip to content

Instantly share code, notes, and snippets.

@Arrlindii
Created March 18, 2019 23:50
Show Gist options
  • Select an option

  • Save Arrlindii/b554a5961ef5cf314862d85dc196238f to your computer and use it in GitHub Desktop.

Select an option

Save Arrlindii/b554a5961ef5cf314862d85dc196238f to your computer and use it in GitHub Desktop.
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