public class TuneCampaign extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TUNE_CAMPAIGN_IDENTIFIER |
static String |
TUNE_CAMPAIGN_VARIATION_IDENTIFIER |
Constructor and Description |
---|
TuneCampaign(String campaignId,
String variationId,
Integer numberOfSecondsToReportAnalytics) |
Modifier and Type | Method and Description |
---|---|
static TuneCampaign |
fromStorage(String json) |
String |
getCampaignId() |
Integer |
getNumberOfSecondsToReportAnalytics() |
String |
getVariationId() |
boolean |
hasCampaignId() |
boolean |
hasVariationId() |
void |
markCampaignViewed() |
boolean |
needToReportCampaignAnalytics() |
Set<TuneAnalyticsVariable> |
toAnalyticVariables() |
String |
toStorage() |
public static final String TUNE_CAMPAIGN_IDENTIFIER
public static final String TUNE_CAMPAIGN_VARIATION_IDENTIFIER
public Set<TuneAnalyticsVariable> toAnalyticVariables()
public boolean hasCampaignId()
public boolean hasVariationId()
public String getCampaignId()
public String getVariationId()
public Integer getNumberOfSecondsToReportAnalytics()
public void markCampaignViewed()
public boolean needToReportCampaignAnalytics()
public String toStorage() throws org.json.JSONException
org.json.JSONException
public static TuneCampaign fromStorage(String json) throws org.json.JSONException
org.json.JSONException