Constructor and Description |
---|
PendingTransactionsResult(MobileKitException mobileKitException)
Returns a new PendingTransactionsResult containing the exception.
|
PendingTransactionsResult(MobileKitException mobileKitException,
int pendingTransactionCount)
Returns a new PendingTransactionsResult containing the exception and the count of pending
transactions.
|
PendingTransactionsResult(PendingTransaction[] transactions,
int pendingTransactionCount)
Returns an instance of PendingTransactionsResult, containing an array of
PendingTransaction . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorDescription()
Returns detailed information about the error.
|
MobileKitException |
getMobileKitException()
Returns the exception object, representing the error.
|
int |
getPendingTransactionCount()
The count of all pending transactions.
|
PendingTransaction[] |
getTransactions()
The array of PendingTransaction structures.
|
boolean |
hasError()
Returns whether to indicate an error.
|
static PendingTransactionsResult |
parse(org.json.JSONObject data,
boolean nextTransactionOnly,
java.util.Comparator<PendingTransaction> orderBy)
Parses the object into a
PendingTransactionsResult . |
public PendingTransactionsResult(PendingTransaction[] transactions, int pendingTransactionCount)
PendingTransaction
.transactions
- an array of PendingTransaction
spendingTransactionCount
- the count of all pending transactionsjava.lang.IllegalArgumentException
- if any parameter is nullpublic PendingTransactionsResult(MobileKitException mobileKitException, int pendingTransactionCount)
mobileKitException
- the MobileKitException
representing the errorpendingTransactionCount
- the count of all pending transactionspublic PendingTransactionsResult(MobileKitException mobileKitException)
mobileKitException
- the MobileKitException
representing the errorpublic int getPendingTransactionCount()
public boolean hasError()
public MobileKitException getMobileKitException()
getMobileKitException
in interface IResult
public java.lang.String getErrorDescription()
getErrorDescription
in interface IResult
public PendingTransaction[] getTransactions()
PendingTransaction
structurespublic static PendingTransactionsResult parse(org.json.JSONObject data, boolean nextTransactionOnly, java.util.Comparator<PendingTransaction> orderBy)
PendingTransactionsResult
.data
- the object to deserialize fromnextTransactionOnly
- flag indicating whether only the next transaction should be returnedorderBy
- a Comparator<PendingTransaction>
that orders the list of transactions. If the parameter is
null, the transactions get ordered descending by their PendingTransaction.createdDate
(newest first).PendingTransactionsResult