- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
private func onboardingOrderRequest() {
let request = ADBMobile.targetCreateRequestWithName(String(ABTestRequestType.OnboardingOrder),
defaultContent: nil,
parameters: nil)
ADBMobile.targetLoadRequest(request) { [weak self] resultName in
guard let resultName = resultName else {
self?.onboardingOrderSubject.onNext(.GroupA)
return
}
switch resultName {
case "OnboardingBeforeLogin": self?.onboardingOrderSubject.onNext(.GroupA)
case "OnboardingAfterLogin": self?.onboardingOrderSubject.onNext(.GroupB)
default: self?.onboardingOrderSubject.onNext(.Default)
}
}
}