Package org.stellar.sdk.xdr
Class TransactionResult.TransactionResultResult
java.lang.Object
org.stellar.sdk.xdr.TransactionResult.TransactionResultResult
- All Implemented Interfaces:
XdrElement
- Enclosing class:
TransactionResult
TransactionResultResult's original definition in the XDR file is:
union switch (TransactionResultCode code)
{
case txFEE_BUMP_INNER_SUCCESS:
case txFEE_BUMP_INNER_FAILED:
InnerTransactionResultPair innerResultPair;
case txSUCCESS:
case txFAILED:
OperationResult results<>;
case txTOO_EARLY:
case txTOO_LATE:
case txMISSING_OPERATION:
case txBAD_SEQ:
case txBAD_AUTH:
case txINSUFFICIENT_BALANCE:
case txNO_ACCOUNT:
case txINSUFFICIENT_FEE:
case txBAD_AUTH_EXTRA:
case txINTERNAL_ERROR:
case txNOT_SUPPORTED:
// case txFEE_BUMP_INNER_FAILED: handled above
case txBAD_SPONSORSHIP:
case txBAD_MIN_SEQ_AGE_OR_GAP:
case txMALFORMED:
case txSOROBAN_INVALID:
case txFROZEN_KEY_ACCESSED:
void;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionResultResult(TransactionResultCode discriminant, InnerTransactionResultPair innerResultPair, OperationResult[] results) Creates a newTransactionResultResultinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of theinnerResultPairfield.Value of theresultsfield.inthashCode()voidsetDiscriminant(TransactionResultCode discriminant) Value of thediscriminantfield.voidsetInnerResultPair(InnerTransactionResultPair innerResultPair) Value of theinnerResultPairfield.voidsetResults(OperationResult[] results) Value of theresultsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionResultResult
public TransactionResultResult() -
TransactionResultResult
public TransactionResultResult(TransactionResultCode discriminant, InnerTransactionResultPair innerResultPair, OperationResult[] results) Creates a newTransactionResultResultinstance.- Parameters:
discriminant- thediscriminantfield valueinnerResultPair- theinnerResultPairfield valueresults- theresultsfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static TransactionResult.TransactionResultResult decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static TransactionResult.TransactionResultResult decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static TransactionResult.TransactionResultResult fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static TransactionResult.TransactionResultResult fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getInnerResultPair
Value of theinnerResultPairfield.- Returns:
- the
innerResultPairfield value
-
getResults
Value of theresultsfield.- Returns:
- the
resultsfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setInnerResultPair
Value of theinnerResultPairfield.- Parameters:
innerResultPair- theinnerResultPairfield value
-
setResults
Value of theresultsfield.- Parameters:
results- theresultsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-