public class ApptimizeTestInfo
extends java.lang.Object
| Constructor and Description |
|---|
ApptimizeTestInfo(java.lang.String testName,
java.lang.Long testId,
java.lang.String enrolledVariantName,
long enrolledVariantId,
java.util.Date testStartedDate,
java.util.Date testEnrolledDate,
boolean participated) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEnrolledVariantId() |
java.lang.String |
getEnrolledVariantName() |
java.util.Date |
getTestEnrolledDate()
Returns the
Date this device was enrolled into this A/B
test. |
java.lang.Long |
getTestId()
Returns the
Long ID of the Apptimize A/B test. |
java.lang.String |
getTestName() |
java.util.Date |
getTestStartedDate()
Returns the
Date this Apptimize test was started. |
boolean |
userHasParticipated()
Returns whether the user has participated in this test during this session.
|
public ApptimizeTestInfo(java.lang.String testName,
java.lang.Long testId,
java.lang.String enrolledVariantName,
long enrolledVariantId,
java.util.Date testStartedDate,
java.util.Date testEnrolledDate,
boolean participated)
public java.lang.String getTestName()
String name of the Apptimize A/B test.public java.lang.Long getTestId()
Long ID of the Apptimize A/B test.
Note that this value can be null if recently upgrading from an older
version of the Apptimize SDK that did not support this method.Long ID of the Apptimize A/B test.public java.lang.String getEnrolledVariantName()
String name of the variant of this test
that this device is enrolled in.public long getEnrolledVariantId()
long ID of the variant of this test
that this device is enrolled in.public java.util.Date getTestStartedDate()
Date this Apptimize test was started. Note
that this is the time as reported by Apptimize's servers and is not
affected by changes in the device's clock.Date this Apptimize test was started.public java.util.Date getTestEnrolledDate()
Date this device was enrolled into this A/B
test. Note that unlike the return value for getTestStartedDate()
, this is the time as reported by the device, and not the time as
reported by Apptimize's server. This difference is relevant if the
device's clock is inaccurate.Date this device was enrolled into this A/B
test.public boolean userHasParticipated()
Boolean indicating whether the user has participated in this test