Package org.stellar.sdk.xdr
Class ManageBuyOfferOp
java.lang.Object
org.stellar.sdk.xdr.ManageBuyOfferOp
ManageBuyOfferOp's original definition in the XDR file is:
struct ManageBuyOfferOp { Asset selling; Asset buying; int64 buyAmount; // amount being bought. if set to 0, delete the offer Price price; // price of thing being bought in terms of what you are // selling // 0=create a new offer, otherwise edit an existing offer int64 offerID; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ManageBuyOfferOp
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ManageBuyOfferOp
fromXdrBase64
(String xdr) static ManageBuyOfferOp
fromXdrByteArray
(byte[] xdr) getPrice()
int
hashCode()
void
setBuyAmount
(Int64 buyAmount) void
void
setOfferID
(Int64 offerID) void
void
setSelling
(Asset selling) toString()
default String
default byte[]
-
Constructor Details
-
ManageBuyOfferOp
public ManageBuyOfferOp() -
ManageBuyOfferOp
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSelling
-
getBuying
-
getBuyAmount
-
getPrice
-
getOfferID
-
setSelling
-
setBuying
-
setBuyAmount
-
setPrice
-
setOfferID
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-