public final class UserProfileAccessResponse
extends java.lang.Object
PurchasingService.requestUserProfileAccess()
Modifier and Type | Class and Description |
---|---|
static class |
UserProfileAccessResponse.RequestStatus
Represents the status of auth code request initiated by
PurchasingService.requestUserProfileAccess() . |
Constructor and Description |
---|
UserProfileAccessResponse(com.amazon.device.iap.internal.model.UserProfileAccessResponseBuilder builder)
Creates an instance of the UserProfileAccessResponse.
|
Modifier and Type | Method and Description |
---|---|
RequestId |
getRequestId()
Returns the request ID originally returned by
PurchasingService.requestUserProfileAccess() . |
UserProfileAccessResponse.RequestStatus |
getRequestStatus()
Returns the status of the auth code data request.
|
java.lang.String |
getUserProfileAccessAuthCode()
Returns auth code.
|
org.json.JSONObject |
toJSON()
Utility method to return a JSON object containing the information for a
UserProfileAccessResponse instance.
|
java.lang.String |
toString() |
public UserProfileAccessResponse(com.amazon.device.iap.internal.model.UserProfileAccessResponseBuilder builder)
builder
- The builder for the UserProfileAccessResponse.public RequestId getRequestId()
PurchasingService.requestUserProfileAccess()
. This identifier
can be used to correlate the original request with this response.public UserProfileAccessResponse.RequestStatus getRequestStatus()
public java.lang.String getUserProfileAccessAuthCode()
public java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException