public class ContractEvent extends java.lang.Object implements XdrElement
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;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
ContractEvent.ContractEventBody
ContractEventBody's original definition in the XDR file is:
|
static class |
ContractEvent.ContractEventBuilder |
| Constructor and Description |
|---|
ContractEvent() |
ContractEvent(ExtensionPoint ext,
ContractID contractID,
ContractEventType type,
ContractEvent.ContractEventBody body) |
| Modifier and Type | Method and Description |
|---|---|
static ContractEvent.ContractEventBuilder |
builder() |
static ContractEvent |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ContractEvent |
fromXdrBase64(java.lang.String xdr) |
static ContractEvent |
fromXdrByteArray(byte[] xdr) |
ContractEvent.ContractEventBody |
getBody() |
ContractID |
getContractID() |
ExtensionPoint |
getExt() |
ContractEventType |
getType() |
int |
hashCode() |
void |
setBody(ContractEvent.ContractEventBody body) |
void |
setContractID(ContractID contractID) |
void |
setExt(ExtensionPoint ext) |
void |
setType(ContractEventType type) |
ContractEvent.ContractEventBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic ContractEvent()
public ContractEvent(ExtensionPoint ext, ContractID contractID, ContractEventType type, ContractEvent.ContractEventBody body)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static ContractEvent decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static ContractEvent fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static ContractEvent fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static ContractEvent.ContractEventBuilder builder()
public ContractEvent.ContractEventBuilder toBuilder()
public ExtensionPoint getExt()
public ContractID getContractID()
public ContractEventType getType()
public ContractEvent.ContractEventBody getBody()
public void setExt(ExtensionPoint ext)
public void setContractID(ContractID contractID)
public void setType(ContractEventType type)
public void setBody(ContractEvent.ContractEventBody body)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object