Class OfferResponse

java.lang.Object
org.stellar.sdk.responses.Response
org.stellar.sdk.responses.OfferResponse
All Implemented Interfaces:
Pageable

public final class OfferResponse extends Response implements Pageable
Represents offer response.
See Also:
  • Constructor Details

    • OfferResponse

      public OfferResponse(Long id, String pagingToken, String seller, Asset selling, Asset buying, String amount, Price priceR, String price, Long lastModifiedLedger, String lastModifiedTime, String sponsor, OfferResponse.Links links)
      Creates a new OfferResponse instance.
      Parameters:
      id -
      pagingToken -
      seller -
      selling -
      buying -
      amount -
      priceR -
      price -
      lastModifiedLedger - Can be null if ledger adding an offer has not been ingested yet. *
      lastModifiedTime -
      sponsor -
      links -
  • Method Details

    • getId

      public Long getId()
    • getPagingToken

      public String getPagingToken()
      Specified by:
      getPagingToken in interface Pageable
    • getSeller

      public String getSeller()
    • getSelling

      public Asset getSelling()
    • getBuying

      public Asset getBuying()
    • getAmount

      public String getAmount()
    • getPriceR

      public Price getPriceR()
    • getPrice

      public String getPrice()
    • getLastModifiedLedger

      public Long getLastModifiedLedger()
      Can be null if ledger adding an offer has not been ingested yet. *
    • getLastModifiedTime

      public String getLastModifiedTime()
    • getSponsor

      public String getSponsor()
    • getLinks

      public OfferResponse.Links getLinks()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object