Class GetEventsResponse.EventInfo

java.lang.Object
org.stellar.sdk.responses.sorobanrpc.GetEventsResponse.EventInfo
Enclosing class:
GetEventsResponse

public static final class GetEventsResponse.EventInfo extends Object
  • Constructor Details

    • EventInfo

      public EventInfo(EventFilterType type, Long ledger, String ledgerClosedAt, String contractId, String id, String pagingToken, List<String> topic, String value, Boolean inSuccessfulContractCall, String transactionHash)
      Creates a new EventInfo instance.
      Parameters:
      type -
      ledger -
      ledgerClosedAt -
      contractId -
      id -
      pagingToken - The field may will be removed in the next version of the protocol. It remains for backward. It is recommended to use GetEventsResponse.cursor instead.
      topic - The elements inside can be parsed as SCVal objects.
      value - The field can be parsed as SCVal object.
      inSuccessfulContractCall -
      transactionHash -
  • Method Details

    • parseTopic

      public List<SCVal> parseTopic()
      Parses the topic field from a list of strings to a list of SCVal objects.
      Returns:
      a list of parsed SCVal objects
    • parseValue

      public SCVal parseValue()
      Parses the value field from a string to an SCVal object.
      Returns:
      the parsed SCVal object
    • getType

      public EventFilterType getType()
    • getLedger

      public Long getLedger()
    • getLedgerClosedAt

      public String getLedgerClosedAt()
    • getContractId

      public String getContractId()
    • getId

      public String getId()
    • getPagingToken

      public String getPagingToken()
      The field may will be removed in the next version of the protocol. It remains for backward. It is recommended to use GetEventsResponse.cursor instead.
    • getTopic

      public List<String> getTopic()
      The elements inside can be parsed as SCVal objects.
    • getValue

      public String getValue()
      The field can be parsed as SCVal object.
    • getInSuccessfulContractCall

      public Boolean getInSuccessfulContractCall()
    • getTransactionHash

      public String getTransactionHash()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object