public final class UserData
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<UserData> |
CREATOR
CREATOR field that generates instances of UserData object from a Parcel.
|
Constructor and Description |
---|
UserData(com.amazon.device.iap.internal.model.UserDataBuilder builder)
Creates an instance of the UserData.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.lang.String |
getCountryCode()
Returns the Country Code
|
LWAConsentStatus |
getLWAConsentStatus()
Returns the LWA data share consent status of the user.
|
java.lang.String |
getMarketplace()
Returns the two character Alpha-2 code of ISO_3166-1 denoting the marketplace of the user.
|
java.lang.String |
getUserId()
Returns the user ID.
|
UserProfileAccessConsentStatus |
getUserProfileAccessConsentStatus()
Returns the data share consent status of the user.
|
org.json.JSONObject |
toJSON()
Utility method to return a JSON object containing the information for a
UserData instance.
|
java.lang.String |
toString()
Utility method to return a String object that contains the information
for a UserData instance.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<UserData> CREATOR
public UserData(com.amazon.device.iap.internal.model.UserDataBuilder builder)
builder
- The builder for the UserData.public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String getUserId()
public java.lang.String getMarketplace()
public UserProfileAccessConsentStatus getUserProfileAccessConsentStatus()
public LWAConsentStatus getLWAConsentStatus()
public java.lang.String getCountryCode()
public org.json.JSONObject toJSON()
public java.lang.String toString()
toString
in class java.lang.Object