com.adjust.sdk.EventResponseData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adjust-android-criteo Show documentation
Show all versions of adjust-android-criteo Show documentation
The Criteo plugin for Adjust SDK for Android
package com.adjust.sdk;
import org.json.JSONObject;
/**
* Created by pfms on 09/02/16.
*/
public class EventResponseData extends ResponseData {
public String eventToken;
public EventResponseData(ActivityPackage activityPackage) {
eventToken = activityPackage.getParameters().get("event_token");
}
public AdjustEventSuccess getSuccessResponseData() {
if (!success) {
return null;
}
AdjustEventSuccess successResponseData = new AdjustEventSuccess();
successResponseData.message = message;
successResponseData.timestamp = timestamp;
successResponseData.adid = adid;
if (jsonResponse != null) {
successResponseData.jsonResponse = jsonResponse;
} else {
successResponseData.jsonResponse = new JSONObject();
}
successResponseData.eventToken = eventToken;
return successResponseData;
}
public AdjustEventFailure getFailureResponseData() {
if (success) {
return null;
}
AdjustEventFailure failureResponseData = new AdjustEventFailure();
failureResponseData.message = message;
failureResponseData.timestamp = timestamp;
failureResponseData.adid = adid;
failureResponseData.willRetry = willRetry;
if (jsonResponse != null) {
failureResponseData.jsonResponse = jsonResponse;
} else {
failureResponseData.jsonResponse = new JSONObject();
}
failureResponseData.eventToken = eventToken;
return failureResponseData;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy