public final class Result
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Result> |
CREATOR |
| Constructor and Description |
|---|
Result()
Construct a PayPalOneTouchResult for a cancellation
|
Result(java.lang.String environment,
ResponseType responseType,
org.json.JSONObject response,
java.lang.String userEmail)
Construct a PayPalOneTouchResult for a success
|
Result(java.lang.Throwable error)
Construct a PayPalOneTouchResult for a failure
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
java.lang.Throwable |
getError() |
org.json.JSONObject |
getResponse() |
ResultType |
getResultType() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Result> CREATOR
public Result(java.lang.String environment,
ResponseType responseType,
org.json.JSONObject response,
java.lang.String userEmail)
public Result(java.lang.Throwable error)
error - The error to return to the callerpublic Result()
public ResultType getResultType()
public org.json.JSONObject getResponse()
public java.lang.Throwable getError()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable