Class GetEventsResponse.EventInfo
java.lang.Object
org.stellar.sdk.responses.sorobanrpc.GetEventsResponse.EventInfo
- Enclosing class:
GetEventsResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Deprecated.Stellar RPC no longer returns this field fromgetEvents(stellar-rpc#1050), so it isnullwith newer servers.getTopic()The elements inside can be parsed asSCValobjects.getType()getValue()The field can be parsed asSCValobject.inthashCode()Parses thetopicfield from a list of strings to a list ofSCValobjects.Parses thevaluefield from a string to anSCValobject.toString()
-
Constructor Details
-
EventInfo
public EventInfo(EventFilterType type, Long ledger, String ledgerClosedAt, String contractId, String id, Long operationIndex, Long transactionIndex, String transactionHash, List<String> topic, String value, Boolean inSuccessfulContractCall) Deprecated.Stellar RPC no longer returns this field fromgetEvents(stellar-rpc#1050), so it isnullwith newer servers. It will be removed in the next major release.Creates a newEventInfoinstance.- Parameters:
type-ledger-ledgerClosedAt-contractId-id-operationIndex-transactionIndex-transactionHash-topic- The elements inside can be parsed asSCValobjects.value- The field can be parsed asSCValobject.inSuccessfulContractCall- Whether the event was emitted during a successful contract call.
-
-
Method Details
-
parseTopic
Parses thetopicfield from a list of strings to a list ofSCValobjects.- Returns:
- a list of parsed
SCValobjects
-
parseValue
Parses thevaluefield from a string to anSCValobject.- Returns:
- the parsed
SCValobject
-
getType
-
getLedger
-
getLedgerClosedAt
-
getContractId
-
getId
-
getOperationIndex
-
getTransactionIndex
-
getTransactionHash
-
getTopic
The elements inside can be parsed asSCValobjects. -
getValue
The field can be parsed asSCValobject. -
getInSuccessfulContractCall
Deprecated.Stellar RPC no longer returns this field fromgetEvents(stellar-rpc#1050), so it isnullwith newer servers. It will be removed in the next major release.Whether the event was emitted during a successful contract call. -
equals
-
hashCode
public int hashCode() -
toString
-
getEvents(stellar-rpc#1050), so it isnullwith newer servers.