Package org.stellar.sdk.xdr
Class InnerTransactionResult
java.lang.Object
org.stellar.sdk.xdr.InnerTransactionResult
- All Implemented Interfaces:
XdrElement
InnerTransactionResult's original definition in the XDR file is:
struct InnerTransactionResult
{
// Always 0. Here for binary compatibility.
int64 feeCharged;
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;
}
result;
// reserved for future use
union switch (int v)
{
case 0:
void;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classInnerTransactionResultExt's original definition in the XDR file is:static classInnerTransactionResultResult's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionInnerTransactionResult(Int64 feeCharged, InnerTransactionResult.InnerTransactionResultResult result, InnerTransactionResult.InnerTransactionResultExt ext) Creates a newInnerTransactionResultinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static InnerTransactionResultdecode(XdrDataInputStream stream) static InnerTransactionResultdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic InnerTransactionResultstatic InnerTransactionResultfromXdrBase64(String xdr) static InnerTransactionResultfromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of thefeeChargedfield.Value of theresultfield.inthashCode()voidValue of theextfield.voidsetFeeCharged(Int64 feeCharged) Value of thefeeChargedfield.voidValue of theresultfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
InnerTransactionResult
public InnerTransactionResult() -
InnerTransactionResult
public InnerTransactionResult(Int64 feeCharged, InnerTransactionResult.InnerTransactionResultResult result, InnerTransactionResult.InnerTransactionResultExt ext) Creates a newInnerTransactionResultinstance.- Parameters:
feeCharged- thefeeChargedfield valueresult- theresultfield valueext- theextfield 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 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- 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
-
getFeeCharged
Value of thefeeChargedfield.- Returns:
- the
feeChargedfield value
-
getResult
Value of theresultfield.- Returns:
- the
resultfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setFeeCharged
Value of thefeeChargedfield.- Parameters:
feeCharged- thefeeChargedfield value
-
setResult
Value of theresultfield.- Parameters:
result- theresultfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-