Package org.stellar.sdk.xdr
Class ManageBuyOfferOp
java.lang.Object
org.stellar.sdk.xdr.ManageBuyOfferOp
- All Implemented Interfaces:
XdrElement
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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ManageBuyOfferOpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ManageBuyOfferOpfromXdrBase64(String xdr) static ManageBuyOfferOpfromXdrByteArray(byte[] xdr) getPrice()inthashCode()voidsetBuyAmount(Int64 buyAmount) voidvoidsetOfferID(Int64 offerID) voidvoidsetSelling(Asset selling) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ManageBuyOfferOp
public ManageBuyOfferOp() -
ManageBuyOfferOp
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- 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
-