public class PendingTransaction
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<PendingTransaction> |
CREATOR
Creates an instance from a parcel.
|
Constructor and Description |
---|
PendingTransaction(java.lang.String transactionId,
java.lang.String policyEndpointUrl,
java.util.Date createdDate)
Returns an instance of a new
PendingTransaction object. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Returns a bitmask indicating the set of special object types marshaled by this Parcelable
object instance.
|
java.util.Date |
getCreatedDate()
Return the transaction creation date.
|
java.lang.String |
getImageUrl()
Return the fully-qualified URL of an image to use.
|
java.lang.String |
getMessage()
Return the message associated with the transaction, if provided.
|
java.lang.String |
getPolicyEndpointUrl()
Return the policy endpoint of the challenge mechanism.
|
java.lang.String |
getTransactionId()
Return the unique identifier of the transaction.
|
java.lang.String |
getType()
Return the type of transaction.
|
void |
setCreatedDate(java.util.Date createdDate)
Set the transaction creation date.
|
void |
setImageUrl(java.lang.String imageUrl)
Set the fully-qualified URL of an image to use.
|
void |
setMessage(java.lang.String message)
Set the associated message with the transaction.
|
void |
setPolicyEndpointUrl(java.lang.String policyEndpointUrl)
Set the policy endpoint of the challenge mechanism.
|
void |
setTransactionId(java.lang.String transactionId)
Set the unique identifier of the transaction.
|
void |
setType(java.lang.String type)
Set the type of transaction.
|
java.lang.String |
transactionIdShort()
The
transactionId is represented as a Universal Unique Identifier (UUID). |
void |
writeToParcel(android.os.Parcel parcel,
int i)
Writes the object into a parcel.
|
public static final android.os.Parcelable.Creator<PendingTransaction> CREATOR
public PendingTransaction(java.lang.String transactionId, java.lang.String policyEndpointUrl, java.util.Date createdDate)
PendingTransaction
object.transactionId
- the unique identifer of the transactionpolicyEndpointUrl
- the policy endpoint to the challenge mechanismcreatedDate
- the transaction creation datejava.lang.IllegalArgumentException
- if any parameter is nullpublic java.lang.String getTransactionId()
public void setTransactionId(java.lang.String transactionId)
transactionId
- the unique identifier of the transactionjava.lang.IllegalArgumentException
- if parameter is nullpublic java.lang.String getPolicyEndpointUrl()
public void setPolicyEndpointUrl(java.lang.String policyEndpointUrl)
policyEndpointUrl
- the policy endpoint of the challenge mechanismjava.lang.IllegalArgumentException
- if parameter is nullpublic java.util.Date getCreatedDate()
public void setCreatedDate(java.util.Date createdDate)
createdDate
- the transaction creation datejava.lang.IllegalArgumentException
- if parameter is nullpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the associated message with the transactionpublic java.lang.String getImageUrl()
public void setImageUrl(java.lang.String imageUrl)
imageUrl
- the fully-qualified URL of an image to usepublic java.lang.String getType()
public void setType(java.lang.String type)
type
- the type of transactionjava.lang.IllegalArgumentException
- if parameter is nullpublic java.lang.String transactionIdShort()
transactionId
is represented as a Universal Unique Identifier (UUID).
This method returns the characters up to the first dash.transactionId
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable
parcel
- the parcel where the object is written intoi
- flags about how the object should be written