public class TxnResponse extends Object
| Constructor and Description | 
|---|
TxnResponse()
Default constructor 
 | 
TxnResponse(JsonObject json)
Constructor from JSON 
 | 
| Modifier and Type | Method and Description | 
|---|---|
TxnResponse | 
addError(TxnError error)
Adds error to this response 
 | 
TxnResponse | 
addResult(TxnResult result)
Adds result to this response 
 | 
TxnError | 
getError(int index)
Returns the errors at the specified position in this list 
 | 
List<TxnError> | 
getErrors()
Returns list of transaction errors 
 | 
int | 
getErrorsSize()
Returns the number of errors in this response 
 | 
TxnResult | 
getResult(int index)
Returns the result at the specified position in this list 
 | 
List<TxnResult> | 
getResults()
Returns list of transaction results 
 | 
int | 
getResultsSize()
Returns the number of results in this response 
 | 
JsonObject | 
toJson()
Convert to JSON 
 | 
public TxnResponse()
public TxnResponse(JsonObject json)
json - the JSONpublic JsonObject toJson()
public List<TxnResult> getResults()
public int getResultsSize()
public TxnResult getResult(int index)
index - index of the result to returnpublic TxnResponse addResult(TxnResult result)
result - the resultpublic List<TxnError> getErrors()
public int getErrorsSize()
public TxnError getError(int index)
index - index of the error to returnpublic TxnResponse addError(TxnError error)
error - the errorCopyright © 2020 Eclipse. All rights reserved.