Package org.stellar.sdk.xdr
Class InnerTransactionResult.InnerTransactionResultResult
java.lang.Object
org.stellar.sdk.xdr.InnerTransactionResult.InnerTransactionResultResult
- All Implemented Interfaces:
XdrElement
- Enclosing class:
InnerTransactionResult
public static class InnerTransactionResult.InnerTransactionResultResult
extends Object
implements XdrElement
InnerTransactionResultResult's original definition in the XDR file is:
union switch (TransactionResultCode code)
{
// txFEE_BUMP_INNER_SUCCESS is not included
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:
// txFEE_BUMP_INNER_FAILED is not included
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
ConstructorsConstructorDescriptionInnerTransactionResultResult(TransactionResultCode discriminant, OperationResult[] results) Creates a newInnerTransactionResultResultinstance. -
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 theresultsfield.inthashCode()voidsetDiscriminant(TransactionResultCode discriminant) Value of thediscriminantfield.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
-
InnerTransactionResultResult
public InnerTransactionResultResult() -
InnerTransactionResultResult
Creates a newInnerTransactionResultResultinstance.- Parameters:
discriminant- thediscriminantfield 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 InnerTransactionResult.InnerTransactionResultResult decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static InnerTransactionResult.InnerTransactionResultResult decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static InnerTransactionResult.InnerTransactionResultResult fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static InnerTransactionResult.InnerTransactionResultResult 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
public static InnerTransactionResult.InnerTransactionResultResult.InnerTransactionResultResultBuilder builder() -
toBuilder
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getResults
Value of theresultsfield.- Returns:
- the
resultsfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setResults
Value of theresultsfield.- Parameters:
results- theresultsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-