Package org.stellar.sdk.xdr
Class TransactionEvent
java.lang.Object
org.stellar.sdk.xdr.TransactionEvent
- All Implemented Interfaces:
XdrElement
TransactionEvent's original definition in the XDR file is:
struct TransactionEvent {
TransactionEventStage stage; // Stage at which an event has occurred.
ContractEvent event; // The contract event that has occurred.
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionEvent(TransactionEventStage stage, ContractEvent event) Creates a newTransactionEventinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionEventdecode(XdrDataInputStream stream) static TransactionEventdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionEventstatic TransactionEventfromXdrBase64(String xdr) static TransactionEventfromXdrByteArray(byte[] xdr) getEvent()Value of theeventfield.getStage()Value of thestagefield.inthashCode()voidsetEvent(ContractEvent event) Value of theeventfield.voidsetStage(TransactionEventStage stage) Value of thestagefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionEvent
public TransactionEvent() -
TransactionEvent
Creates a newTransactionEventinstance.- Parameters:
stage- thestagefield valueevent- theeventfield 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
- 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
-
getStage
Value of thestagefield.- Returns:
- the
stagefield value
-
getEvent
Value of theeventfield.- Returns:
- the
eventfield value
-
setStage
Value of thestagefield.- Parameters:
stage- thestagefield value
-
setEvent
Value of theeventfield.- Parameters:
event- theeventfield value
-
equals
-
hashCode
public int hashCode() -
toString
-