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()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
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.
|
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)
Flatten this object in to a Parcel.
|
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()
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public java.lang.String getUserId()
public java.lang.String getMarketplace()
public org.json.JSONObject toJSON()
public java.lang.String toString()
toString
in class java.lang.Object