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,
int cycle,
int currentPhase,
int participationPhase) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentPhase()
Returns the current phase of this test.
|
int |
getCycle()
Returns the cycle of this test.
|
long |
getEnrolledVariantId() |
java.lang.String |
getEnrolledVariantName() |
int |
getParticipationPhase()
Returns the phase in which the last participation occurred for this test.
|
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 since enrollment.
|
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, int cycle, int currentPhase, int participationPhase)
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 testpublic int getCycle()
int
ID of the cycle of this test.public int getCurrentPhase()
int
ID of the current phase of this test.public int getParticipationPhase()
int
ID of the participation phase of this test.