public final class UserDataResponse
extends java.lang.Object
PurchasingService.getUserData()
.Modifier and Type | Class and Description |
---|---|
static class |
UserDataResponse.RequestStatus
Represents the status of a get user data request initiated by
PurchasingService.getUserData() . |
Constructor and Description |
---|
UserDataResponse(com.amazon.device.iap.internal.model.UserDataResponseBuilder builder)
Creates an instance of the UserDataResponse.
|
Modifier and Type | Method and Description |
---|---|
RequestId |
getRequestId()
Provides access to the request ID originally returned by
PurchasingService.getUserData() . |
UserDataResponse.RequestStatus |
getRequestStatus()
Indicates the status of the getUserData call.
|
UserData |
getUserData()
Returns the user ID and marketplace
information of the user associated with the purchase.
|
org.json.JSONObject |
toJSON()
Utility method to return a JSON object containing the information for a
UserDataResponse instance.
|
java.lang.String |
toString()
Utility method to return a String object that contains the information
for a UserDataResponse instance.
|
public UserDataResponse(com.amazon.device.iap.internal.model.UserDataResponseBuilder builder)
builder
- The builder for the UserDataResponse.public RequestId getRequestId()
PurchasingService.getUserData()
. This identifier can be used to
correlate the original request with this response.public UserDataResponse.RequestStatus getRequestStatus()
public UserData getUserData()
public java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException