public class ApptimizeTestInfo
extends java.lang.Object
Constructor and Description |
---|
ApptimizeTestInfo(java.lang.String testName,
java.lang.Long testId,
com.apptimize.ApptimizeTestType testType,
java.lang.String enrolledVariantName,
long enrolledVariantId,
java.util.Date testStartedDate,
java.util.Date testEnrolledDate,
boolean participated,
int cycle,
int currentPhase,
int participationPhase,
java.lang.String userId,
java.lang.String anonymousUserId)
Create a new ApptimizeTestInfo data class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAnonymousUserId() |
com.apptimize.ApptimizeTestType |
getApptimizeTestType() |
int |
getCurrentPhase()
Returns the current phase of this test.
|
java.lang.String |
getCustomerUserId() |
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, com.apptimize.ApptimizeTestType testType, java.lang.String enrolledVariantName, long enrolledVariantId, java.util.Date testStartedDate, java.util.Date testEnrolledDate, boolean participated, int cycle, int currentPhase, int participationPhase, java.lang.String userId, java.lang.String anonymousUserId)
testName
- The name of the testtestId
- The unique id of the testtestType
- The type of testenrolledVariantName
- The name of the variant the user is enrolled inenrolledVariantId
- The unique id of the varient the user is enrolled intestStartedDate
- The date the test startedtestEnrolledDate
- The date the user became enrolledparticipated
- A flag indicating if the user has participated in the test yetcycle
- The current cycle of the testcurrentPhase
- The current phase of the testparticipationPhase
- The phase which the user first participated inuserId
- The userId of the enrolled user (may be null)anonymousUserId
- The anonymous id of the enrolled userpublic 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 com.apptimize.ApptimizeTestType getApptimizeTestType()
ApptimizeTestType
type of the
Apptimize testpublic 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.public java.lang.String getCustomerUserId()
String
ID of the user enrolled
in the Apptimize A/B test. This may be null if there is no customer specified ID.public java.lang.String getAnonymousUserId()
String
anonymous user id of the user
enrolled in the Apptimize A/B test.