-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4cef52
commit 60f8099
Showing
4 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
15 changes: 12 additions & 3 deletions
15
ShopperInsights/src/main/java/com/braintreepayments/api/shopperinsights/ExperimentType.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
package com.braintreepayments.api.shopperinsights | ||
|
||
enum class ExperimentType { | ||
CONTROL, | ||
TEST | ||
enum class ExperimentType(val rawValue: String) { | ||
CONTROL("control"), | ||
TEST("test"); | ||
|
||
fun formattedExperiment(): String { | ||
return """ | ||
[ | ||
{ "exp_name" : "PaymentReady" } | ||
{ "treatment_name" : $rawValue } | ||
] | ||
""" | ||
} | ||
} |
This file contains 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
This file contains 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