public abstract class User
extends java.lang.Object
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
static User |
create(java.lang.String deviceId,
java.lang.String mopubConsent,
java.lang.String uspIab,
java.lang.String uspOptout) |
abstract java.lang.String |
deviceId() |
abstract java.lang.String |
deviceIdType() |
abstract java.lang.String |
deviceOs() |
abstract java.lang.String |
mopubConsent() |
org.json.JSONObject |
toJson()
This method will be removed once
CdbRequest will be migrated
to AutoValue or other annotation based serialization/deserialization solution. |
static com.google.gson.TypeAdapter<User> |
typeAdapter(com.google.gson.Gson gson) |
abstract java.lang.String |
uspIab()
US Privacy consent IAB format (for CCPA)
|
abstract java.lang.String |
uspOptout()
US Privacy optout in binary format (for CCPA)
|
public static User create(@Nullable java.lang.String deviceId, @Nullable java.lang.String mopubConsent, @Nullable java.lang.String uspIab, @Nullable java.lang.String uspOptout)
public static com.google.gson.TypeAdapter<User> typeAdapter(com.google.gson.Gson gson)
@NonNull
public org.json.JSONObject toJson()
throws org.json.JSONException
CdbRequest will be migrated
to AutoValue or other annotation based serialization/deserialization solution.org.json.JSONException@Nullable public abstract java.lang.String deviceId()
@NonNull public abstract java.lang.String deviceIdType()
@NonNull public abstract java.lang.String deviceOs()
@Nullable public abstract java.lang.String mopubConsent()
@Nullable public abstract java.lang.String uspIab()
@Nullable public abstract java.lang.String uspOptout()