Package org.stellar.sdk.xdr
Class ContractEvent
java.lang.Object
org.stellar.sdk.xdr.ContractEvent
- All Implemented Interfaces:
XdrElement
ContractEvent's original definition in the XDR file is:
struct ContractEvent
{
// We can use this to add more fields, or because it
// is first, to change ContractEvent into a union.
ExtensionPoint ext;
ContractID* contractID;
ContractEventType type;
union switch (int v)
{
case 0:
struct
{
SCVal topics<>;
SCVal data;
} v0;
}
body;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContractEventBody's original definition in the XDR file is:static class -
Constructor Summary
ConstructorsConstructorDescriptionContractEvent(ExtensionPoint ext, ContractID contractID, ContractEventType type, ContractEvent.ContractEventBody body) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ContractEventdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ContractEventfromXdrBase64(String xdr) static ContractEventfromXdrByteArray(byte[] xdr) getBody()getExt()getType()inthashCode()voidvoidsetContractID(ContractID contractID) voidsetExt(ExtensionPoint ext) voidsetType(ContractEventType type) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ContractEvent
public ContractEvent() -
ContractEvent
public ContractEvent(ExtensionPoint ext, ContractID contractID, ContractEventType type, ContractEvent.ContractEventBody body)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getExt
-
getContractID
-
getType
-
getBody
-
setExt
-
setContractID
-
setType
-
setBody
-
equals
-
hashCode
public int hashCode() -
toString
-